Link to home
Start Free TrialLog in
Avatar of Somchai
Somchai

asked on

how2 know day of week from 26-Nov-1999 format ?

how2 know day of week from 26-Nov-1999 format ?

i want to know that day is monday...friday ?

the time() functime count second since 1970.

i couldn't calculate those day into second and put in
gmtime( );

and then extract $day_of_week  from

      ($sec,$min,$hr,$day,$month,$year,$day_of_week,$day_of_year,$some) = gmtime( $those_day_time );


sorry for my poor english
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Somchai
Somchai

ASKER

Thank you so much ozo...u r super geek...

how to give point to u...u always answer as comment  :>

by the way, I couldn't find the document of  timegm() function.

I think it is addition library function, right ?

but it works well.  the timegm() have only 6 parameters , right?
hr,min,sec,day,month,year ?

thank you again u help me so many time..
perldoc Time::Local