PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework System time

Reply

System time

 
Thread Tools Rate Thread
Old 11-02-2004, 06:20 PM   #1
Venue
Guest
 
Posts: n/a
Default System time


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)


  Reply With Quote
Old 11-02-2004, 06:31 PM   #2
Paul G. Tobey [eMVP]
Guest
 
Posts: n/a
Default Re: System time

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)
>
>



  Reply With Quote
Old 11-02-2004, 06:43 PM   #3
Kevin Hutchison
Guest
 
Posts: n/a
Default Re: System time

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)
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off