Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Date format YYYY-MM-DD HH-MM-SS

by moritz (Cardinal)
on Oct 13, 2013 at 10:32 UTC ( #1058054=note: print w/ replies, xml ) Need Help??


in reply to Date format YYYY-MM-DD HH-MM-SS

... by formating it that way. For example with POSIX::strftime.

Many time-related modules (like DateTime, Date::Calc etc.) also have convenience methods for formatting dates and times.


Comment on Re: Date format YYYY-MM-DD HH-MM-SS
Re^2: Date format YYYY-MM-DD HH-MM-SS
by builat (Monk) on Oct 13, 2013 at 12:08 UTC
    For *nix like systems the lame but the fast way is my $date = `date +"%Y-%m-%d-%H-%M-%S"`;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-03 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls