Dave Adams wrote: > I can get date but not time. > > use Time::localtime; > $tm = localtime; > printf("Current date: %04d-%02d-%02d\n",$tm->year+1900,($tm->mon)+1, > $tm->mday); > printf("Current time: %02d:%02d:%02d\n",$tm->hours,$tm->min,$tm->sec);
The above should include $tm->hour instead of $tm->hours, but were you not getting the min/sec before? > > Any help would be appreciated. > DA > http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>