Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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!


Comment on Re: Determining the dayname for the last day of any given month
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-09-19 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls