Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: date

by beebware (Pilgrim)
on Feb 13, 2002 at 18:47 UTC ( [id://145243]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub library_todayis {
     my ($time)=@_;
    ...
     $year      = $year + 1900;
     return ("$day $months[$mon] $year $hour:$min");
    }
    
  2. or download this
    sub library_todayis {
     my $time=shift || time();
    ...
     $year+=1900;$mon++;
     return sprintf("%02d $months[$mon] $year %02d:%02d",$day,$hour,$min);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2025-03-16 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.