I think there are currently no modules default in perl that do this, You could try the Date::Calc module.
On Wed, 2001-12-05 at 15:07, Tyler Longren wrote: > I'm not sure if there's a function to do that. But you could check the > length of $DAY...if it's less than 2 you could just add a 0 infront of it. > > Good luck, > Tyler Longren > > ----- Original Message ----- > From: "Torres, Jose" <[EMAIL PROTECTED]> > To: "'Shinagare, Sandeep'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Wednesday, December 05, 2001 2:09 PM > Subject: RE: today's date.... > > > > In the code below, is there a Perl built-in function to pass $DAY into > > so that a "9" comes out "09"? I need digits from 1 to 9 to be of the form > > 01, 02, etc. Ideas? Thanks. > > > > > > > > -Jose > > > > > > > > -----Original Message----- > > From: Shinagare, Sandeep [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, December 05, 2001 11:27 AM > > To: '[EMAIL PROTECTED]' > > Subject: today's date.... > > > > > > Hi Folks! > > Trying to get todays date and month... was able to find this... > > > > #snip-start > > use Time::localtime; > > $tm = localtime; > > ($DAY, $MONTH, $YEAR) = ($tm->mday, $tm->mon, $tm->year); > > #snip-end > > > > this gives me the Day and Month in numbers.. anyway in which i > > can get "Mon","Tue","Wed" and "Jan","Feb","Mar" etc.. other than > > coding the conversion? > > > > Thanks, > > Sandeep > > > > > > ********************************************************************** > > COLT Telecommunications > > Registered in England No. 2452736 > > Registered Office: Bishopsgate Court, 4 Norton Folgate, London E1 6DQ > > Tel. 020 7390 3900 > > > > This message is subject to and does not create or vary any contractual > > relationship between COLT Telecommunications, its subsidiaries or > > affiliates ("COLT") and you. Internet communications are not secure > > and therefore COLT does not accept legal responsibility for the > > contents of this message. Any view or opinions expressed are those of > > the author. The message is intended for the addressee only and its > > contents and any attached files are strictly confidential. If you have > > received it in error, please telephone the number above. Thank you. > > > > > > ************************************************************************ > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richie Crews Unix Administrator / Internet Integrator Email: [EMAIL PROTECTED] Address: 1211 O.G Skinner Drive West Point, Georgia 31833 Cell: (706) 773 - 3436 Desk: (706) 634 - 3681 Fax: (706) 634 - 3831 rm -rf /bin/laden chmod a+rwx /bin/freedom -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]