eversoslightly
asked on
Easy - Formatting the Time
Hi!
Here's an easy one:
How can I stick the time into a variable, and also make it in regular looks - i.e. 10:30 PM
Thanks,
Mark
Here's an easy one:
How can I stick the time into a variable, and also make it in regular looks - i.e. 10:30 PM
Thanks,
Mark
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OK, then I'll see your posix, and raise you
use Date::Manip;
print UnixDate('now', "%I:%M:%S %p"),"\n";
use Date::Manip;
print UnixDate('now', "%I:%M:%S %p"),"\n";
ASKER
Thanks :) Only needed one :)
use POSIX;
print strftime"%I:%M %p\n",localtime;