Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Time / Date Arithmetic Module Recommendations

by ikegami (Patriarch)
on Oct 09, 2008 at 03:36 UTC ( [id://716123]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    if    ($days == 0) { print( "Merry Christmas!\n"            ); }
    elsif ($days == 1) { print( "Christmas is tomorrow!\n"      ); }
    else               { print( "Christmas is in $days days.\n" ); }
    
  2. or download this
    Christmas is in 78 days.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found