Gossamer Forum
Home : General : Chit Chat :

perl's time command

Quote Reply
perl's time command
Does anyone know how to calculate perl's time command?

$endtime = 847443600; # Time it ends (as returned by perl's time command)

I am wanting to set it for 1 month from now, was not sure if there is an online calculator or a formula someone knows about to calculate this.

Thank for any help


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [SandraR] perl's time command In reply to
Found it @http://lankewicz.sewanee.edu/lankewicz/cs428/class22.html:


from real time to ascii real time (wall clock)
returned in 26-character buffer
da mo dat hr : min : sec year \n \0
3 1 3 1 2 1 2 1 2 1 2 1 4 1 1


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [SandraR] perl's time command In reply to
Hi,

This is also a good resource, just FYI Smile

http://www.4webhelp.net/us/timestamp.php

I use it to convert dates/timestamps all the time, rather than having to do it manually/via a script <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates