Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: unix timestamp

by sacked (Hermit)
on Jul 08, 2004 at 22:47 UTC ( [id://372984]=note: print w/replies, xml ) Need Help??


in reply to unix timestamp

POSIX is another core module you can use. Its strftime function will do what you want:

use POSIX 'strftime'; + my $timestamp= strftime( '%s' => localtime() );

See perldoc -f localtime, POSIX::strftime, and strftime(3).

--sacked

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found