Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 imbibing at the Monastery: (7)
As of 2014-12-26 22:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls