Gossamer Forum
Home : General : Perl Programming :

how to return day of week with Time::Local

Quote Reply
how to return day of week with Time::Local
Hi,

I'm trying to tweak another script, but I've having some problems. I hardly know perl, so I hope someone here can tell me how to do this.

What should I use to store the current day of the week (0-6) in a variable ( say $my_day_of_week ) using Time::Local ?

So on Sunday $my_day_of_week=0
on Monday $my_day_of_week=1
etc.

Thanks!

Robert
http://www.pcprofiles.com
PC Profiles and hardware reviews

Last edited by:

Robert_B: Aug 1, 2005, 3:36 PM
Quote Reply
Re: [Robert_B] how to return day of week with Time::Local In reply to
Never mind, found a solution!

Robert
http://www.pcprofiles.com
PC Profiles and hardware reviews