in reply to Changing a Date format
I take it what you want is something that gets you the day of the week and the hour and minute of the day. Judicious use and parsing of the output of scalar localtime($time), where $time is the value of a UNIX timestamp, should help you out here (see perldoc -f localtime for more on the output of scalar localtime).
To get that UNIX timestamp, take a look at Time::Local : basically, you pass the timelocal function defined therein a year, month, and day, and it produces a timestamp for you.
HTH!
perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'
|
|---|