Link to home
Start Free TrialLog in
Avatar of eversoslightly
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
ASKER CERTIFIED SOLUTION
Avatar of b2pi
b2pi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ozo
#another:
use POSIX;
print strftime"%I:%M %p\n",localtime;
OK, then I'll see your posix, and raise you

use Date::Manip;

print UnixDate('now', "%I:%M:%S %p"),"\n";

Avatar of eversoslightly
eversoslightly

ASKER

Thanks :)  Only needed one :)