?
Solved

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

Posted on 1999-11-19
3
Medium Priority
?
214 Views
Last Modified: 2010-03-05
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
0
Comment
Question by:tong111797
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
ozo earned 2000 total points
ID: 2219209
use Time::Local;
$those_day_time = timegm(0,0,0,26,11-1,1999-1900);
#or
use Date::Manip;
0
 

Author Comment

by:tong111797
ID: 2219250
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..
0
 
LVL 85

Expert Comment

by:ozo
ID: 2219260
perldoc Time::Local
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question