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

Re: Timelocal, Localtime Bug?

by jwkrahn (Abbot)
on Mar 29, 2012 at 21:53 UTC ( [id://962486]=note: print w/replies, xml ) Need Help??


in reply to Timelocal, Localtime Bug?

$ perl -le'my $test = localtime( 0, 0, $month, 1, 31, 2012 ); print $t +est' Too many arguments for localtime at -e line 1, near "2012 )" Execution of -e aborted due to compilation errors.

Your code won't even compile, let alone run.

Replies are listed 'Best First'.
Re^2: Timelocal, Localtime Bug?
by Riales (Hermit) on Mar 29, 2012 at 22:10 UTC

    It looks like it might run if you flip localtime and timelocal with each other (I'm guessing timelocal takes the arguments localtime is currently taking and vice-versa).

    That said, I have no idea concerning the original question. ><

      Sorry guys! My development machine is not connected to the internet, so I had to type the chunk of applicable code and I mixed up timelocal and localtime. I fixed the code samples in the original post, so now my original question actually applies (also put 3 instead of 31... I hate fat fingers today). Sorry!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-18 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found