X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc81d32f2bf8c159f3b1bf6ddaf62e6d77720209..751731864888f00e31e6dce1092ac28a1fac5358:/docs/latex/wx/datetime.tex diff --git a/docs/latex/wx/datetime.tex b/docs/latex/wx/datetime.tex index c68991c7ab..11e0edb6d8 100644 --- a/docs/latex/wx/datetime.tex +++ b/docs/latex/wx/datetime.tex @@ -6,7 +6,7 @@ %% Created: 07.03.00 %% RCS-ID: $Id$ %% Copyright: (c) Vadim Zeitlin -%% License: wxWindows license +%% License: wxWidgets license %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{\class{wxDateTime}}\label{wxdatetime} @@ -245,8 +245,7 @@ values were correct as constructors can not return an error code. \helpref{SetSecond}{wxdatetimesetsecond}\\ \helpref{SetMillisecond}{wxdatetimesetmillisecond}\\ \helpref{operator$=$(time\_t)}{wxdatetimeoperatoreqtimet}\\ -\helpref{operator$=$(struct tm)}{wxdatetimeoperatoreqtm} -%\helpref{operator$=$(struct Tm)}{wxdatetimeoperatortm2} +\helpref{operator$=$(struct tm)}{wxdatetimeoperatoreqtm}\rtfsp \membersection{Accessors} @@ -977,17 +976,6 @@ Adds the given time span to this object. \pythonnote{This method is named {\tt AddTS} in wxPython.} -\membersection{wxDateTime::Subtract}\label{wxdatetimesubtractts} - -\constfunc{wxDateTime}{Subtract}{\param{const wxTimeSpan\& }{diff}} - -\func{wxDateTime\&}{Subtract}{\param{const wxTimeSpan\& }{diff}} - -\func{wxDateTime\&}{operator$-=$}{\param{const wxTimeSpan\& }{diff}} - -Subtracts the given time span from this object. - -\pythonnote{This method is named {\tt SubtractTS} in wxPython.} \membersection{wxDateTime::Add}\label{wxdatetimeaddds} @@ -1001,6 +989,20 @@ Adds the given date span to this object. \pythonnote{This method is named {\tt AddDS} in wxPython.} + +\membersection{wxDateTime::Subtract}\label{wxdatetimesubtractts} + +\constfunc{wxDateTime}{Subtract}{\param{const wxTimeSpan\& }{diff}} + +\func{wxDateTime\&}{Subtract}{\param{const wxTimeSpan\& }{diff}} + +\func{wxDateTime\&}{operator$-=$}{\param{const wxTimeSpan\& }{diff}} + +Subtracts the given time span from this object. + +\pythonnote{This method is named {\tt SubtractTS} in wxPython.} + + \membersection{wxDateTime::Subtract}\label{wxdatetimesubtractds} \constfunc{wxDateTime}{Subtract}{\param{const wxDateSpan\& }{diff}} @@ -1013,6 +1015,7 @@ Subtracts the given date span from this object. \pythonnote{This method is named {\tt SubtractDS} in wxPython.} + \membersection{wxDateTime::Subtract}\label{wxdatetimesubtractdt} \constfunc{wxTimeSpan}{Subtract}{\param{const wxDateTime\& }{dt}} @@ -1048,18 +1051,19 @@ free ways, you should use \helpref{ParseDateTime}{wxdatetimeparsedatetime} or This function parses the string {\it date} according to the given {\it format}. The system {\tt strptime(3)} function is used whenever available, -but even if it is not, this function is still implemented (although support -for locale-dependent format specificators such as {\tt "\%c"}, {\tt "\%x"} or -{\tt "\%X"} may be not perfect). This function does handle the month and -weekday names in the current locale on all platforms, however. +but even if it is not, this function is still implemented, although support +for locale-dependent format specifiers such as {\tt "\%c"}, {\tt "\%x"} or {\tt "\%X"} may +not be perfect and GNU extensions such as {\tt "\%z"} and {\tt "\%Z"} are +not implemented. This function does handle the month and weekday +names in the current locale on all platforms, however. -Please the description of ANSI C function {\tt strftime(3)} for the syntax of -the format string. +Please see the description of the ANSI C function {\tt strftime(3)} for the syntax +of the format string. The {\it dateDef} parameter is used to fill in the fields which could not be -determined from the format string. For example, if the format is {\tt "\%d"} -(the day of the month), the month and the year are taken from {\it dateDef}. -If it is not specified, \helpref{Today}{wxdatetimetoday} is used as the +determined from the format string. For example, if the format is {\tt "\%d"} (the +ay of the month), the month and the year are taken from {\it dateDef}. If +it is not specified, \helpref{Today}{wxdatetimetoday} is used as the default date. Returns {\tt NULL} if the conversion failed, otherwise return the pointer to @@ -1076,7 +1080,8 @@ will accept anything that may be accepted and will only reject strings which can not be parsed in any way at all. Returns {\tt NULL} if the conversion failed, otherwise return the pointer to -the character which stopped the scan. +the character which stopped the scan. This method is currently not +implemented, so always returns NULL. \membersection{wxDateTime::ParseDate}\label{wxdatetimeparsedate} @@ -1107,7 +1112,7 @@ the character which stopped the scan. This function does the same as the standard ANSI C {\tt strftime(3)} function. Please see its description for the meaning of {\it format} parameter. -It also accepts a few wxWindows-specific extensions: you can optionally specify +It also accepts a few wxWidgets-specific extensions: you can optionally specify the width of the field to follow using {\tt printf(3)}-like syntax and the format specification {\tt \%l} can be used to get the number of milliseconds.