Extracted private GetTimeZone() to public wxGetTimeZone() function.

Created new wx/time.h header for this function, more time-related functions
will be added to it later.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-11-27 19:50:19 +00:00
parent b0ec002323
commit 59068d79f7
30 changed files with 4541 additions and 4356 deletions

View File

@@ -57,6 +57,7 @@
#endif
#include "wx/datetime.h"
#include "wx/time.h"
// ============================================================================
// implementation of wxDateTime
@@ -68,8 +69,6 @@
extern void InitTm(struct tm& tm);
extern int GetTimeZone();
extern wxString CallStrftime(const wxString& format, const tm* tm);
// ----------------------------------------------------------------------------
@@ -329,7 +328,7 @@ wxString wxDateTime::Format(const wxString& formatp, const TimeZone& tz) const
// use strftime()
struct tm tmstruct;
struct tm *tm;
if ( tz.GetOffset() == -GetTimeZone() )
if ( tz.GetOffset() == -wxGetTimeZone() )
{
// we are working with local time
tm = wxLocaltime_r(&time, &tmstruct);