Home All Groups Group Topic Archive Search About

Qick and easy Way to Sync System Time with Internet Timeserver?

Author
3 Nov 2005 6:53 PM
katzky
I am writing a windows service which, among other things, needs to sync the
system clock on a periodic basis.  Is there a super-simple easy as pie way to
do this?  [The serive will run on XP]

Thanks for your assistance.

Author
4 Nov 2005 3:54 AM
Lau Lei Cheong
How about configuring the W32time service to do this on your behalf?

"net time /help"

Show quote
"katzky" <kat***@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:186D8115-6763-4EB2-8969-5D041C777***@microsoft.com...
>I am writing a windows service which, among other things, needs to sync the
> system clock on a periodic basis.  Is there a super-simple easy as pie way
> to
> do this?  [The serive will run on XP]
>
> Thanks for your assistance.
>
>
Author
4 Nov 2005 4:08 AM
Michael D. Ober
XP has a built in NTP client already.  Log on as administrator and
double-click on the clock.  One of the tabs provides the configuration
options.  Use this tab to set up your NTP server and then log off.

Mike Ober.

"Lau Lei Cheong" <leu***@yehoo.com.hk> wrote in message
news:ep8X7NP4FHA.2816@tk2msftngp13.phx.gbl...
>
> How about configuring the W32time service to do this on your behalf?
>
> "net time /help"
>
> "katzky" <kat***@discussions.microsoft.com>
¼¶¼g©ó¶l¥ó·s»D:186D8115-6763-4EB2-8969-5D041C777***@microsoft.com...
Show quote
> >I am writing a windows service which, among other things, needs to sync
the
> > system clock on a periodic basis.  Is there a super-simple easy as pie
way
> > to
> > do this?  [The serive will run on XP]
> >
> > Thanks for your assistance.
> >
> >
>
>
>
Author
4 Nov 2005 5:19 AM
katzky
What I need to do is control the sync via my application.  I was looking
around and I found the registry entry for the sync interval for the NTP
client.....so I guess I am just going to change that value to the value I
need.


Show quote
"Michael D. Ober" wrote:


> XP has a built in NTP client already.  Log on as administrator and
> double-click on the clock.  One of the tabs provides the configuration
> options.  Use this tab to set up your NTP server and then log off.
>
> Mike Ober.
>
> "Lau Lei Cheong" <leu***@yehoo.com.hk> wrote in message
> news:ep8X7NP4FHA.2816@tk2msftngp13.phx.gbl...
> >
> > How about configuring the W32time service to do this on your behalf?
> >
> > "net time /help"
> >
> > "katzky" <kat***@discussions.microsoft.com>
> ¼¶¼g©ó¶l¥ó·s»D:186D8115-6763-4EB2-8969-5D041C777***@microsoft.com...
> > >I am writing a windows service which, among other things, needs to sync
> the
> > > system clock on a periodic basis.  Is there a super-simple easy as pie
> way
> > > to
> > > do this?  [The serive will run on XP]
> > >
> > > Thanks for your assistance.
> > >
> > >
> >
> >
> >
>
>
>
>
Author
4 Nov 2005 9:42 AM
Lau Lei Cheong
Something related but out of topic. :)

If your version of Windows XP is anything other than English version, the
"time sync" option disappears. :O

Show quote
"Michael D. Ober" <ober***@.alum.mit.edu.nospam> ¼¶¼g©ó¶l¥ó·s»D:K8Baf.5428$Rl1.2***@newsread1.news.pas.earthlink.net...
>
> XP has a built in NTP client already.  Log on as administrator and
> double-click on the clock.  One of the tabs provides the configuration
> options.  Use this tab to set up your NTP server and then log off.
>
> Mike Ober.
>
> "Lau Lei Cheong" <leu***@yehoo.com.hk> wrote in message
> news:ep8X7NP4FHA.2816@tk2msftngp13.phx.gbl...
>>
>> How about configuring the W32time service to do this on your behalf?
>>
>> "net time /help"
>>
>> "katzky" <kat***@discussions.microsoft.com>
> ¼¶¼g©ó¶l¥ó·s»D:186D8115-6763-4EB2-8969-5D041C777***@microsoft.com...
>> >I am writing a windows service which, among other things, needs to sync
> the
>> > system clock on a periodic basis.  Is there a super-simple easy as pie
> way
>> > to
>> > do this?  [The serive will run on XP]
>> >
>> > Thanks for your assistance.
>> >
>> >
>>
>>
>>
>
>
>

AddThis Social Bookmark Button