in reply to Re: Converting 24 hour time back into 12 hour
in thread Converting 24 hour time back into 12 hour
use POSIX; use POSIX qw(strftime); my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) = lo +caltime(time); print print POSIX::strftime('%I:%M:%S %p - %a, %B %d, %Y',$sec, $min, +$hour, $wday, $mon, $year, $mday); # 10:12:47 AM Mon, August 01, 2016
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Converting 24 hour time back into 12 hour
by hippo (Archbishop) on Aug 02, 2016 at 08:43 UTC |