Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

(wil) Re: Setting the time on a Windows machine

by wil (Priest)
on Jul 08, 2002 at 09:03 UTC ( #180120=note: print w/replies, xml ) Need Help??

in reply to Setting the time on a Windows machine

I've never actually done this myself, but I think this should be possible using the Win32::API module available on CPAN.

You will need to specifically look at the GetSystemTime and SetSystemTime which I know will work for a Windows NT machine, but I don't see why it shouldn't work for your 98 machine, too.

If you have sufficent permissions, you might also be able to directly run the date program. You can read more about how to do this in Perl FAQ 8

Failing that, however, it might be worth looking into a few networking modules on CPAN. These modules allow you to remotely set your system time either off a time server or as you define.

Hope this helps

- wil

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://180120]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-11-26 11:30 GMT
Find Nodes?
    Voting Booth?