in reply to current time between two time
#!/usr/bin/perl for (qw(9:01PM 3:30AM 1:10AM)) { if (m{^(\d+):(\d\d)(AM|PM)}) { print "$_ is @{[$1*60+$2+($3 eq 'PM' ? 12*60 : 0)]} minutes\n" +; }; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: current time between two time
by davido (Cardinal) on Mar 04, 2014 at 20:21 UTC | |
by Ratazong (Monsignor) on Mar 04, 2014 at 20:27 UTC |