Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting local time to GMT/UTC

96 views
Skip to first unread message

Popoi

unread,
Apr 27, 2010, 11:20:01 PM4/27/10
to
Hello all.

I'm working in Microsoft eMbedded Visual C++ developing an app for Windows
CE 5.0, and I've read in places that the functions
SystemTimeToTzSpecificLocalTime and TzSpecificLocalTimeToSystemTime should be
available, but when i try to use them, I get compiler errors and i can't
quite figure out where they are located.

Although, going to MSDN, i can't find these listed under 'Time Functions'
for CE 5.0, but i can for Win32.
(http://msdn.microsoft.com/en-us/library/aa450771(v=MSDN.10).aspx ,
http://msdn.microsoft.com/en-us/library/ms725473(v=VS.85).aspx ).

So, what gives. are these available on CE 5.0? Is there some trick to
obtaining access to them, or is there a different way to convert times?

Prabu[MCTS]

unread,
Apr 28, 2010, 3:12:02 AM4/28/10
to
Those functions are not available in WinCE 5.0.

Can you tell us exactly what you are trying to do?

--
Regards,
Prabu
http://prabukumar.wordpress.com/


"Popoi" <Po...@discussions.microsoft.com> wrote in message
news:7DD281C1-C54E-45C2...@microsoft.com...

Popoi

unread,
Apr 28, 2010, 11:59:01 AM4/28/10
to

Convert a local time (not necessarily the current time) to GMT or UTC, and
vice versa.

"Prabu[MCTS]" wrote:

> .
>

Vinoth [MCTS]

unread,
Apr 29, 2010, 3:17:01 AM4/29/10
to

r_z_...@pen_fact.com

unread,
Apr 29, 2010, 1:58:40 PM4/29/10
to
You can use SystemTimeToFileTime and FileTimeToSystemTime to convert
between formats, and can then use FileTimeToLocalTime and
LocalTimeToFileTime to convert between UTC and local.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, MVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com

0 new messages