Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Calender billing_prt (strftime)

by Anonymous Monk
on Jan 23, 2014 at 22:35 UTC ( [id://1071840]=note: print w/replies, xml ) Need Help??


in reply to Calender billing_prt

Read about DateTime if you're interested
use strict; use warnings; use DateTime; my $now = DateTime->now; print "$now\n"; print "year: ", $now->year, "\n"; for my $what( qw/ year month day hour min sec / ){ print "$what: ", $now->$what, "\n"; } print DateTime->now( qw! time_zone America/Los_Angeles ! )->strftime(q +!%F %T%z!), "\n"; print DateTime->now( qw! time_zone America/Los_Angeles ! )->strftime(q +!%T, %a %b %d, %Y!), "\n"; __END__ 2014-01-23T22:38:31 year: 2014 year: 2014 month: 1 day: 23 hour: 22 min: 38 sec: 31 2014-01-23 14:38:31-0800 14:38:31, Thu Jan 23, 2014

Log In?
Username:
Password:

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

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

    No recent polls found