in reply to Time and Date Output
#!/usr/bin/perl -w use strict; use POSIX qw(strftime); my $date = strftime "%Y-%m-%d %H:%M:%S", localtime(time); open(OUT, ">myfile.date") or die "Oopsy: $!"; print OUT $date,"\n"; close(OUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Time and Date Output
by Limbic~Region (Chancellor) on Jul 20, 2003 at 01:08 UTC | |
by Fletch (Bishop) on Jul 20, 2003 at 11:13 UTC | |
by jeffa (Bishop) on Jul 20, 2003 at 15:49 UTC |