On Oct 17, Joseph Ruffino said: >I have a real quick question, I hope. Now, I know there is a variable >called localtime, which has the current time and date in, all you have >to do is assign it to the correct variable. My question is, what are >the correct variable names for the time? My assumption is $hour and >$minute(s), can someone confirm this with me, so I know for sure.
Err, not quite. There is a function, localtime(), which returns, among other things, the seconds, minutes, hours, day, month, and year. You need to get the specific values from it. ($sec, $min, $hr) = localtime; ($min, $hr) = (localtime)[1,2]; ($min, $day, $mon) = (localtime)[1,3,4]; ($day, $mon, $yr) = (localtime)[3..5]; You don't NEED to use those names for your variables. I do. That's just me. -- 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. [ 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]
