http://qs321.pair.com?node_id=180120


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