Ken
2005-11-08 18:03:43 UTC
I must be missing something as this would seem obvious, but what is the API
call to get the current GMT offset?
I have a date that is GMT. I use a COleDateTime object to format the
date/time for the user in their preferred format. However, COleDateTime is
ignorant of DST or GMT. However, CTime apparently deals with GMT but has
lower resolution and is not as nice to work with for formatting.
I think my preferred method would be to add/subtract the GMT offset to the
COleDateTime object, but I'm not quite sure what API to call to get the
offset.
call to get the current GMT offset?
I have a date that is GMT. I use a COleDateTime object to format the
date/time for the user in their preferred format. However, COleDateTime is
ignorant of DST or GMT. However, CTime apparently deals with GMT but has
lower resolution and is not as nice to work with for formatting.
I think my preferred method would be to add/subtract the GMT offset to the
COleDateTime object, but I'm not quite sure what API to call to get the
offset.