#!/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);
In reply to Re: Time and Date Output
by TVSET
in thread Time and Date Output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |