Document that wxDateTime::UNow() returns UTC time.
This wasn't clear and was probably surprising as this is different from Now() behaviour. See #14149. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1604,9 +1604,8 @@ public:
|
|||||||
printf("Current time in Paris:\t%s\n", now.Format("%c", wxDateTime::CET).c_str());
|
printf("Current time in Paris:\t%s\n", now.Format("%c", wxDateTime::CET).c_str());
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
@note This function is accurate up to seconds. UNow() should be used
|
@note This function is accurate up to seconds. UNow() can be used if
|
||||||
for better precision, but it is less efficient and might not be
|
better precision is required.
|
||||||
available on all platforms.
|
|
||||||
|
|
||||||
@see Today()
|
@see Today()
|
||||||
*/
|
*/
|
||||||
@@ -1641,11 +1640,13 @@ public:
|
|||||||
static wxDateTime Today();
|
static wxDateTime Today();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the object corresponding to the current time including the
|
Returns the object corresponding to the current UTC time including the
|
||||||
milliseconds if a function to get time with such precision is available
|
milliseconds.
|
||||||
on the current platform (supported under most Unices and Win32).
|
|
||||||
|
|
||||||
@see Now()
|
Notice that unlike Now(), this method creates a wxDateTime object
|
||||||
|
corresponding to UTC, not local, time.
|
||||||
|
|
||||||
|
@see Now(), wxGetUTCTimeMillis()
|
||||||
*/
|
*/
|
||||||
static wxDateTime UNow();
|
static wxDateTime UNow();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user