About the parameter TimeZone of wxDateTime::Format Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Ronald
Super wx Problem Solver
Super wx Problem Solver
Posts: 306
Joined: Mon Mar 05, 2018 4:17 am

About the parameter TimeZone of wxDateTime::Format

Post by Ronald »

Code: Select all

wxString wxDateTime::Format  ( const wxString &  format = wxDefaultDateTimeFormat, const TimeZone &  tz = Local)  const 
The doc said nothing about the parameter tz.

wxDateTime contains no info about timezone, and TimeZone is relative, so what does tz relative to?
Ronald
Super wx Problem Solver
Super wx Problem Solver
Posts: 306
Joined: Mon Mar 05, 2018 4:17 am

Re: About the parameter TimeZone of wxDateTime::Format

Post by Ronald »

I found the answer.

wxDateTime got no info about time zone, it defaults to local.

Consider:

Code: Select all

wxDateTime::ToTimezone
wxDateTime::FromTimezone
wxDateTime::Format's parameter "TimeZone tz" means "ToTimezone".
Post Reply