good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Date Handling in Perlby Utilitarian (Vicar) |
on Jul 11, 2012 at 14:42 UTC ( [id://981133]=note: print w/replies, xml ) | Need Help?? |
perldoc -f localtime - For all your basic time manipulation needs. perldoc Date::Manip - For more complex manipulations with end of month and edge cases solved for you.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|