Set wxDateTime - with GMT values
Steven Van Ingelgem
steven at vaningelgem.be
Sun Nov 4 23:50:40 PST 2007
I think you should post a feature request to SF with the question to
add the timezone to the constructors/Setters as this is not very easy
to achieve I feel.
How I would do it:
Get those 2 values:
wxLocaltime_r
wxGmtime_r
Subtract them from each other and add them to your newly constructed
date. Then it will be in GMT_8 or whatever local timezone you are
in...
Hopes this helps :-)
On 11/5/07, Chris Stankevitz <cstankevitz at toyon.com> wrote:
> Steven Van Ingelgem wrote:
> > Creation:
> > wxDateTime(day, mon, year, h, m, s, ms)
> > Getter:
> > wxDateTime::GetYear(GMT_8);
>
> Steven,
>
> Thanks for your reply. This does not work because wxDateTime assumes
> the constructor parms are in GMT_8 (my local timezone). The ctor parms
> I'm passing are in GMT.
>
> Thanks,
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list