🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by ibrahim canpunar Mon, 07 Apr 2003 14:30
GMT/UTC Offset Value
#17138
Author: ibrahim canpunar
Date: Mon, 07 Apr 2003 14:30
6 lines
1029 bytes
Hi All,
How can we obtain the GMT Offset value (+2, +5 ...) for a date without
changing the computer's clock.

Thanks all,
ibrahim
Re: GMT/UTC Offset Value
#17143
Author: Dennis Jones
Date: Mon, 07 Apr 2003 16:12
19 lines
1588 bytes
"ibrahim canpunar" <ibrahim.canpunar@bilten.metu.edu.tr> wrote in message
news:3e918aa6@newsgroups.borland.com...
> Hi All,
> How can we obtain the GMT Offset value (+2, +5 ...) for a date without
> changing the computer's clock.
>
> Thanks all,
> ibrahim

I'm not sure what you mean by "Offset value", but I assume you want to know
the number of hours difference between local time and UTC.  To do this, you
can use GetTimeZoneInformation() and retrieve the 'Bias' member of the
TIME_ZONE_INFORMATION structure.  Then divide by 60 (Bias is the number of
minutes difference between local time and GMT).

Does this help?

- Dennis
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads