Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Time Question

by Maqs (Deacon)
on May 08, 2000 at 18:39 UTC ( #10610=note: print w/replies, xml ) Need Help??


in reply to Time Question

First of all I'm not sure that foreign users running your script
will get different values of time. The script is running on your
machine and must operate with your time settings.
Yep, you need to look through the descriptions of gmtime/localtime
functions. But, by all means you can easely use a system date
function (i.e. $mydate=`date`;) pay attention to backticks.
--
With best regards
Maqs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://10610]
help
Chatterbox?
[TCLion]: Good Morning Monks, I am parsing logs and some date time formats are inconsistent. I am trying to make output all same format. What is the best way to convert a month(word) to month(number)?
[Corion]: TCLion: I'm not aware of a better way than manually building the hash, as all strptime incarnations I know have nasty edge cases
[davido]: And remember; time is hard. :) As soon as you think, I've got this, you'll discover that time is harder than that. :)
[1nickt]: TCLion are you parsing the dates with DateTime or another tool?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-03-23 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (287 votes). Check out past polls.