Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: How to format dates prior to 1970?

by karthikkumar (Initiate)
on Nov 30, 2018 at 14:29 UTC ( #1226537=note: print w/replies, xml ) Need Help??

in reply to How to format dates prior to 1970?

This Time::Piece strftime, seems problem in windows OS even now with version 1.33

So alternate functions available, which works well.

Example this is not giving any output:

$t->strftime("%b %d %Y, %A [%H:%M:%S]")

So, I am re-writing without strftime, and this is working fine for me even on windows OS.

$t->monname . " " . sprintf("%.2d", $t->mday) . " " . $t->year . ", " . $t->fullday . " [" . $t->hms . "]"

Replies are listed 'Best First'.
Re^2: How to format dates prior to 1970?
by 1nickt (Abbot) on Dec 01, 2018 at 03:02 UTC

    Hi, you probably still don't want to do that by hand. Try DateTime instead?

    The way forward always starts with a minimal test.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-09-19 20:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found