Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: week of the year

by Utilitarian (Vicar)
on Aug 07, 2014 at 14:13 UTC ( #1096632=note: print w/replies, xml ) Need Help??

in reply to Re: week of the year
in thread week of the year

I'm going to go ahead and assume that you meant today ;)
utilitarian@busybox ~/$ perl -MTime::Piece -E 'say Time::Piece->strpti +me("080614", "%m%d%y")->week'; 32

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Replies are listed 'Best First'.
Re^3: week of the year
by Tux (Abbot) on Aug 07, 2014 at 14:19 UTC

    Hm, but in my timezone, today is 140807 ;]. Of course I would never put the d between the m and the y. Ever.

    Enjoy, Have FUN! H.Merijn

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-05-30 12:41 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (171 votes). Check out past polls.