in reply to Stupid Time issues
Cereally Seriously, the minutes:
my $minutes = 185; my $hours = $minutes / 60; $minutes = $minutes % 60; printf "Minutes: %02d:%02d\n", $hours, $minutes;
For the date you may want a regex or POSIX::strftime or maybe just fields from localtime. Where is the datetime coming from?
|
|---|