From 324ab5e2dbfcae3582d9405819b46fef5e7c0e59 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 28 Mar 2012 11:29:40 +0000 Subject: [PATCH] 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 --- interface/wx/datetime.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/interface/wx/datetime.h b/interface/wx/datetime.h index b517d4d882..96d7896d85 100644 --- a/interface/wx/datetime.h +++ b/interface/wx/datetime.h @@ -1604,9 +1604,8 @@ public: printf("Current time in Paris:\t%s\n", now.Format("%c", wxDateTime::CET).c_str()); @endcode - @note This function is accurate up to seconds. UNow() should be used - for better precision, but it is less efficient and might not be - available on all platforms. + @note This function is accurate up to seconds. UNow() can be used if + better precision is required. @see Today() */ @@ -1641,11 +1640,13 @@ public: static wxDateTime Today(); /** - Returns the object corresponding to the current time including the - milliseconds if a function to get time with such precision is available - on the current platform (supported under most Unices and Win32). + Returns the object corresponding to the current UTC time including the + milliseconds. - @see Now() + Notice that unlike Now(), this method creates a wxDateTime object + corresponding to UTC, not local, time. + + @see Now(), wxGetUTCTimeMillis() */ static wxDateTime UNow(); }; -- 2.45.2