Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Determining the dayname for the last day of any given month

by Herkum (Parson)
on Jun 19, 2006 at 11:37 UTC ( #556231=note: print w/replies, xml ) Need Help??


in reply to Determining the dayname for the last day of any given month

Take a look at Datetime.
use DateTime; my $dt = DateTime->last_day_of_month( year => 2003, month => 10, hour => 1, minute => 30, second => 0, ); print "Last day of month is " . $dt->day_name() . "\n";
This creates a new object that assumes that it is the last day of the month. Then you just call the day_name(), your done!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556231]
help
Chatterbox?
[marto]: it's a shame Solaris is such a PITA to build on :)
LanX great movie!
[Discipulus]: ah i become monsignor the same day of sysadmin day
[marto]: not so great OS :P
Eily never heard of the movie "LanX"
[Eily]: the LanX OS either now that I think of it :P
[hippo]: Congratulations, Discipulus!
[Discipulus]: Satura Lanx was a latin genre of show

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-07-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (426 votes). Check out past polls.