Title: RE: Setting System Time from Perl

Take a look at http://www.cpan.org/authors/id/M/MI/MIVKOVIC/winsntp-0.35

Milivoj Ivkovic has already written such a beast.

-----Original Message-----
From: Newton, Philip [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 7:46 AM
To: 'Edward G. Orton'; Perl-Win32-Admin Mailing List
Subject: Re: Setting System Time from Perl



Edward G. Orton wrote:
> Does anyone know of a way to set the system time (Windows
> 2000 SP2) from Perl?
[snip]
> I use the 'date' command from that to set the date and time. I
> would like a more direct method without using a "system" or
> "backtick" call.

You can't set the system time using pure Perl. You'll either need to call an
external program to do so or use compiled C code made available as a Perl
module.

I don't know whether or not there is a module already available for Win32
that can do this.

Cheers,
Philip
--
Philip Newton <[EMAIL PROTECTED]>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to