On Oct 17, [EMAIL PROTECTED] said: >I know about localtime(time); But I was wondering if there was a formula >out there like 1066442632/60/60/24 that will say today is say 2003 10 17.
Well, localtime() also returns a list (when called in list context). # get only the values we want my ($day, $mon, $year) = (localtime)[3,4,5]; my $today = sprintf '%04d/%02d%02d', $year + 1900, $mon + 1, $day; There's also the POSIX module's strftime() function. Read the docs for localtime() more carefully, and check out the POSIX::strftime() function, as well as the Date:: modules on CPAN. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]