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

Re^5: Converting from "time" into a nice string?

by converter (Priest)
on Nov 14, 2008 at 14:26 UTC ( #723664=note: print w/replies, xml ) Need Help??

in reply to Re^4: Converting from "time" into a nice string?
in thread Converting from "time" into a nice string?

The strings you're dealing with are (presumably) UNIX epoch time, the number of seconds elapsed since (usually) 00:00:00 January 1, 1970 UTC. The timezone determines the adjustment from UTC to your local timezone:

#!/usr/bin/perl for my $tz (qw[GMT America/Chicago Europe/London]) { local $ENV{TZ} = $tz; print "$tz: " . localtime '1226667500', "\n"; } __END__ GMT: Fri Nov 14 12:58:20 2008 America/Chicago: Fri Nov 14 06:58:20 2008 Europe/London: Fri Nov 14 12:58:20 2008

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://723664]
[1nickt]: stevieb it turns out that Dell still has the Precision line of "mobile workstations", just not displayed on their main website. I found the Precision 7710 with 4k display/full-size keybd as req'd.
[1nickt]: List $2,788 (!), on sale for $1766, also a $200 coupon on the site thru 3/30 ... final price $1,566. Includes 3-yr on-site service.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-03-27 12:48 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.