Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2021-04-13 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?