PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
System time
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
System time
![]() |
System time |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I am using the following to set the system time on pocket pc 2003. How do I
tell it to set the US ET zone and not default GMT. Is there any pInvoke. [DllImport("coredll.dll")] public extern static uint SetSystemTime(ref SYSTEMTIME tm) |
|
|
|
#2 |
|
Guest
Posts: n/a
|
SetSystemTime() *always* sets the time relative to GMT. If you want to set
the local time, you need SetLocalTime(). Paul T. "Venue" <11@1_23_A..net.none> wrote in message news:eFllvuM8DHA.3704@tk2msftngp13.phx.gbl... > I am using the following to set the system time on pocket pc 2003. How do I > tell it to set the US ET zone and not default GMT. Is there any pInvoke. > > [DllImport("coredll.dll")] > public extern static uint SetSystemTime(ref SYSTEMTIME tm) > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
www.OpenNETCF.org has time handling capabilities.
Here is a thread that discussed handling time zones. http://groups.google.nl/groups?hl=e...ompactframework "Venue" <11@1_23_A..net.none> wrote in message news:eFllvuM8DHA.3704@tk2msftngp13.phx.gbl... > I am using the following to set the system time on pocket pc 2003. How do I > tell it to set the US ET zone and not default GMT. Is there any pInvoke. > > [DllImport("coredll.dll")] > public extern static uint SetSystemTime(ref SYSTEMTIME tm) > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

