1 \section{\class{wxTime
}}\label{wxtime
}
3 Representation of time and date.
5 \wxheading{Derived from
}
7 \helpref{wxObject
}{wxobject
}
9 \wxheading{Data structures
}
11 {\small \begin{verbatim
}
12 typedef unsigned short hourTy;
15 {\small \begin{verbatim
}
16 typedef unsigned short minuteTy;
19 {\small \begin{verbatim
}
20 typedef unsigned short secondTy;
23 {\small \begin{verbatim
}
24 typedef unsigned long clockTy;
27 {\small \begin{verbatim
}
28 enum tFormat
{ wx12h, wx24h
};
31 {\small \begin{verbatim
}
32 enum tPrecision
{ wxStdMinSec, wxStdMin
};
37 \helpref{wxDate
}{wxDate
}
39 \latexignore{\rtfignore{\wxheading{Members
}}}
41 \membersection{wxTime::wxTime
}\label{wxtimewxtime
}
43 \func{}{wxTime
}{\void}
45 Initialize the object using the current time.
47 \func{}{wxTime
}{\param{clockTy
}{s
}}
49 Initialize the object using the number of seconds that have elapsed since ???.
51 \func{}{wxTime
}{\param{const wxTime\&
}{ time
}}
55 \func{}{wxTime
}{\param{hourTy
}{h
},
\param{minuteTy
}{m
},
\param{secondTy
}{s =
0},
\param{bool
}{dst = FALSE
}}
57 Initialize using hours, minutes, seconds, and whether DST time.
59 \membersection{wxTime::wxTime
}\label{wxtimewxtime
}
61 \func{}{wxTime
}{\param{const wxDate\&
}{ date
},
\param{hourTy
}{h =
0},
\param{minuteTy
}{m =
0},
\param{secondTy
}{s =
0},
\param{bool
}{dst = FALSE
}}
63 Initialize using a
\helpref{wxDate
}{wxdate
} object, hours, minutes, seconds, and whether DST time.
65 \membersection{wxTime::GetDay
}\label{wxtimegetday
}
67 \constfunc{int
}{GetDay
}{\void}
69 Returns the day of the month.
71 \membersection{wxTime::GetDayOfWeek
}\label{wxtimegetdatofweek
}
73 \constfunc{int
}{GetDayOfWeek
}{\void}
75 Returns the day of the week, a number from
0 to
6 where
0 is Sunday and
6 is Saturday.
77 \membersection{wxTime::GetHour
}\label{wxtimegethour
}
79 \constfunc{hourTy
}{GetHour
}{\void}
81 Returns the hour in local time.
83 \membersection{wxTime::GetHourGMT
}\label{wxtimegethourgmt
}
85 \constfunc{hourTy
}{GetHourGMT
}{\void}
87 Returns the hour in GMT.
89 \membersection{wxTime::GetMinute
}\label{wxtimegetminute
}
91 \constfunc{minuteTy
}{GetMinute
}{\void}
93 Returns the minute in local time.
95 \membersection{wxTime::GetMinuteGMT
}\label{wxtimegetminutegmt
}
97 \constfunc{minuteTy
}{GetMinuteGMT
}{\void}
99 Returns the minute in GMT.
101 \membersection{wxTime::GetMonth
}\label{wxtimegetmonth
}
103 \constfunc{int
}{GetMonth
}{\void}
107 \membersection{wxTime::GetSecond
}\label{wxtimegetsecond
}
109 \constfunc{secondTy
}{GetSecond
}{\void}
111 Returns the second in local time or GMT.
113 \membersection{wxTime::GetSecondGMT
}\label{wxtimegetsecondgmt
}
115 \constfunc{secondTy
}{GetSecondGMT
}{\void}
117 Returns the second in GMT.
119 \membersection{wxTime::GetSeconds
}\label{wxtimegetseconds
}
121 \constfunc{clockTy
}{GetSeconds
}{\void}
123 Returns the number of seconds since ???.
125 \membersection{wxTime::GetYear
}\label{wxtimegetyear
}
127 \constfunc{int
}{GetYear
}{\void}
131 \membersection{wxTime::FormatTime
}\label{wxtimeformattime
}
133 \constfunc{char*
}{FormatTime
}{\void}
135 Formats the time according to the current formatting options: see
\helpref{wxTime::SetFormat
}{wxtimesetformat
}.
137 \membersection{wxTime::IsBetween
}\label{wxtimeisbetween
}
139 \constfunc{bool
}{IsBetween
}{\param{const wxTime\&
}{a
},
\param{const wxTime\&
}{b
}}
141 Returns TRUE if this time is between the two given times.
143 \membersection{wxTime::Max
}\label{wxtimemax
}
145 \constfunc{wxTime
}{Max
}{\param{const wxTime\&
}{time
}}
147 Returns the maximum of the two times.
149 \membersection{wxTime::Min
}\label{wxtimemin
}
151 \constfunc{wxTime
}{Min
}{\param{const wxTime\&
}{time
}}
153 Returns the minimum of the two times.
155 \membersection{wxTime::SetFormat
}\label{wxtimesetformat
}
157 \func{static void
}{SetFormat
}{\param{const tFormat
}{ format = wx12h
},
158 \param{const tPrecision
}{ precision = wxStdMinSec
}}
160 Sets the format and precision.
162 \membersection{wxTime::operator char*
}\label{wxtimestring
}
164 \func{operator
}{char*
}{\void}
166 Returns a pointer to a static char* containing the formatted time.
168 \membersection{wxTime::operator wxDate
}\label{wxtimewxdate
}
170 \constfunc{operator
}{wxDate
}{\void}
172 Converts the wxTime into a wxDate.
174 \membersection{wxTime::operator $=$
}\label{wxtimeoperator
}
176 \func{void
}{operator $=$
}{\param{const wxTime\&
}{t
}}
180 \membersection{wxTime::operator $<$
}\label{wxtimeoperatorle
}
182 \constfunc{bool
}{operator $<$
}{\param{const wxTime\&
}{t
}}
186 \membersection{wxTime::operator $<=$
}\label{wxtimeoperatorleq
}
188 \constfunc{bool
}{operator $<=$
}{\param{const wxTime\&
}{t
}}
190 Less than or equal to operator.
192 \membersection{wxTime::operator $>$
}\label{wxtimeoperatorge
}
194 \constfunc{bool
}{operator $>$
}{\param{const wxTime\&
}{t
}}
196 Greater than operator.
198 \membersection{wxTime::operator $>=$
}\label{wxtimeoperatorgeq
}
200 \constfunc{bool
}{operator $>=$
}{\param{const wxTime\&
}{t
}}
202 Greater than or equal to operator.
204 \membersection{wxTime::operator $==$
}\label{wxtimeoperatoreq
}
206 \constfunc{bool
}{operator $==$
}{\param{const wxTime\&
}{t
}}
210 \membersection{wxTime::operator $!=$
}\label{wxtimeoperatorneq
}
212 \constfunc{bool
}{operator $!=$
}{\param{const wxTime\&
}{t
}}
216 \membersection{wxTime::operator $+$
}\label{wxtimeoperatorplus
}
218 \constfunc{bool
}{operator $+$
}{\param{long
}{sec
}}
222 \membersection{wxTime::operator $-$
}\label{wxtimeoperatorminus
}
224 \constfunc{bool
}{operator $-$
}{\param{long
}{sec
}}
226 Subtraction operator.
228 \membersection{wxTime::operator $+=$
}\label{wxtimeoperatorpluseq
}
230 \constfunc{bool
}{operator $+=$
}{\param{long
}{sec
}}
234 \membersection{wxTime::operator $-=$
}\label{wxtimeoperatorminuseq
}
236 \constfunc{bool
}{operator $-=$
}{\param{long
}{sec
}}