Hi use POSIX
Regards Joel At 11:54 AM 12/4/2001 +0330, nafiseh saberi wrote: >hi >you can do it with >gmtime >localtime >and many time function in... >http://www.perldoc.com/perl5.6/pod/func/gmtime.html >http://www.perldoc.com/perl5.6/pod/func/localtime.html >be successful. >your problem will solve. >_________________________ > Best regards. > Nafiseh Saberi > www.iraninfocenter.net > www.sorna.net > ___________________________ >----- Original Message ----- >From: "Sandeep Pathare" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, December 04, 2001 08:12 AM >Subject: Converting numbers into date format > > > > I am a beginner of Perl. How do I convert and print the following strings > > into a date format so that either the date is returned or "date not valid" > > is printed. > > Input data is: > > > > 792910171010163200 > > 552910171010163200 > > 552913171010163200 > > 552910171010163200 > > 552909171010163200 > > 552909171010163200 > > > > For each of the data value, the output should like: > > > > 552910171010163200 Sat Nov 17 10:29:55 2001 > > > > Here is some hint I read in the documentation, but still can't figure out > > how to use it: > > > > The 552910171010163200 which is Sat Nov 17 10:29:55 2001, > > (HINT: localtime) should be parsed into HH:MM:SS (Zero padded) and > > WDay MMM DD, YYYY - which should look like Sat Nov 17, 2001 > > 55: 29: 10: 17:10: 101: 6: >320:0 > > HH:MM:SS:17:Nov: year (1900 +101= 2001):Sat: 320thday of the year > > > > Thank you very much in advance. > > > > Sandeep > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > > > > -- > > 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] -------------------------------------------------------------- QuantumLink Communications, Bombay, India -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]