in reply to Time transformation
use POSIX qw(strftime); my $time = "19:45:34"; my ($hour, $minute, $second) = split ':', $time; my $convertedTime = strftime("%I:%M:%S %p", $second, $minute, $hour, 1 +, 0, 2004 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Time transformation
by Anonymous Monk on Sep 03, 2004 at 13:30 UTC |