On Dec 15, Michael Pratt said: >I have a question. Why is it that I have to use Scalar localtime to view a >datetime in the proper format. why would I want to use the weird UNIX format >that I cant read?
time() returns the number of seconds since 1970 -- I certainly can't divine the current date and time from that number. localtime() returns a useful string in scalar context, and a list of numbers that describe the current date and time in list context. There are many modules to help format the display of the time. One builtin module is the POSIX module, which gives you the strftime() function which lets you format the output of localtime() however you'd like. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]