Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by wil (Priest)
on Jul 08, 2002 at 09:03 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://180120]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found