in reply to Re: Getting Day Of Month
in thread Getting Day Of Month

Um, what do I do for that localtime() part??
Or Psycho, what does $time hold?

Could you give me the code, I'm slow.

Update: Hey, isn't the Date module standard??
I have to install the stupid thing... Unbelievable!

Replies are listed 'Best First'.
Re: Re: Re: Getting Day Of Month
by ichimunki (Priest) on Jan 03, 2001 at 01:05 UTC
    While I strongly suggest taking cat2014's advice... The localtime function converts an Epoch date into a list. If you look at the documentation, it has (IIRC) nine elements, of which one is the number of the day of the week ($wday). Which you can then use to extract the day of the week from your own @days = ( Sun, Mon, Tue, Wed, Thu, Fri, Sat) list, using $days[$wday]. Update: Getting your input date into Epoch time without a module like Date::Manip, however, is tricky as all heck and not recommended.