All Forums
Microsoft Windows CE
General CE
SetLocalTime loses one second ce3.0/Bitsyboard
Forum Locked
Send Topic to a Friend
Printer Friendly
Author
Topic
wabtec4
59 Posts
Posted - 04 Aug 2005 : 00:41:15
Hi guys,
I have a strange problem with SetLocalTime in Windows CE 3.0:
Here is the C code:
SYSTEMTIME DateTime;
DateTime.wYear=2005;
DateTime.wMonth=8;
DateTime.wDay=3;
DateTime.wHour=1;
DateTime.wMinute=33;
DateTime.wSecond=55;
TIME_ZONE_INFORMATION TimeZone;
memset( &TimeZone, 0, sizeof( TIME_ZONE_INFORMATION ) );
TimeZone.Bias = -600; // 600 minutes, Sydney = UTC + 10 hours
SetTimeZoneInformation( (const TIME_ZONE_INFORMATION* )&TimeZone );
SetLocalTime( & DateTime );
GetLocalTime( &DateTime );
I got:2005-8-3 1:33:54
I expect: 2005-8-3 1:33:55
Where did the missing one second go? All function were finished correctly, I checked.
Any help? Thanks,
Topic
Forum Locked
Send Topic to a Friend
Printer Friendly
Jump To:
Select Forum
Documentation
White Papers
Documentation
Announcements and Public Posts
Hardware
General Hardware, ADSmartIO, Digital I/O and A/Ds
Cables and Connectors
Displays
Ethernet, IR, Serial, CAN and high speed data
Microsoft Windows CE
The Basics (CE)
CE FAQ
General CE
CE Downloads and Documents
eVC Application Development
CE Sample Applications and Utilities
eVB Application Development
.NET Application Development
CE Drivers
CE Flash, CF and PCMCIA
CE Audio and Multimedia
Embedded Linux
Linux Open Discussion
Linux FAQ
Linux Downloads and Documents
Atom Catalyst
Linux for Atom-based products
Atom Firmware
Atom FAQ
Windows Embedded Standard
Microsoft Windows CE for Atom
Catalyst Discussion
Zypad
Zypad Discussion
Microsoft Windows CE
Documents and Downloads
Other Operating Systems
VxWorks FAQ
VxWorks Discussion
OS-9 FAQ
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
Eurotech Support Forums
© Eurotech Inc.
This page was generated in 0.02 seconds.
Snitz Forums 2000