Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Answer: How can I format the output of localtime?

by Roy Johnson (Monsignor)
on Feb 09, 2004 at 22:00 UTC ( #327757=note: print w/replies, xml ) Need Help??

in reply to Re: How can I format the output of localtime?
in thread How can I format the output of localtime?

Well, at its simplest, you can leave off the arg to localtime (and all the parens):
print scalar localtime, "\n";
Update: Well, several have found this post downvotable, but nobody has explained why. It's not incorrect. It offers an improvement over the post to which it is a reply (and which, inexplicably, has been significantly upvoted by comparison).

You're not going to change its placement by downvoting it; it's attached to its parent, and it's the only response.

In the helpful spirit of PerlMonks, could someone offer some reason that this post would be a negative vote magnet?

The PerlMonk tr/// Advocate

Replies are listed 'Best First'.
Re: Re: Answer: How can I format the output of localtime?
by mojotoad (Monsignor) on Feb 13, 2004 at 18:04 UTC
    Who knows. FWIW, I like your solution better than the parent.

    Is there some unspoken rule about golfing in the Q&A section?


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2022-01-17 15:44 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (51 votes). Check out past polls.