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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!