home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!psinntp!juliet!news
- From: jja@fnbc.com (Joseph Alotta)
- Subject: month in localtime?
- Message-ID: <1993Jan20.205428.19963@fnbc.com>
- Keywords: time,month
- Sender: news@fnbc.com
- Organization: First National Bank Of Chicago, Chicago IL, USA
- Date: Wed, 20 Jan 93 20:54:28 GMT
- Lines: 29
-
- greetings,
-
- how does one get the month out in localtime?
- this one's right out of the book:
-
- #!/usr/local/bin/perl
- ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
- print "$sec,$min,$hour,$mday,mon=$mon,$year,$wday,$yday,$isdst\n";
- exit;
-
- amy{jja}44: headline.prl
- 19,52,14,20,mon=0,93,3,19,0
- amy{jja}45: date
- Wed Jan 20 14:52:21 CST 1993
-
-
- thanks,
-
- joe.
-
-
- --
- ==============================================================
- ! joe alotta jja@fnbc.com !
- ! (312) 732-3439 !
- ! !
- ! "The main thing is to keep the main thing the main thing." !
- ! Dr. George Sweeney !
- ==============================================================
-