locatime()

S

Sam

hello
I have a date array, I need to identify those dates which are Saturdays and
Sundays. I think part of my problem is that I don't know how to search the
documentations that came with perl5.6 in my Linux box. so I you could give
some direction on how to do that tasks I am grateful

thanks
 
J

James E Keenan

Sam said:
hello
I have a date array, I need to identify those dates which are Saturdays and
Sundays.

Install the Date::Calc module from CPAN and use something like the
Day_of_Week() function.

I think part of my problem is that I don't know how to search the
documentations that came with perl5.6 in my Linux box. so I you could give
some direction on how to do that tasks I am grateful
perldoc -q date
# but since Date::Calc is not standard, this won't answer your specific
question. Nonetheless, this is the general approach for querying the docs.
 
T

Tom

Sam said:
hello
I have a date array, I need to identify those dates which are Saturdays and
Sundays. I think part of my problem is that I don't know how to search the
documentations that came with perl5.6 in my Linux box. so I you could give
some direction on how to do that tasks I am grateful

thanks

Reference book such as Programming Perl is a good alternate source of
getting the type of information that you're looking for. For instance,
if you look up localtime() you would see an example of getting the day
of the week from the function like this:

$thisday = (Sun,Mon,Tue,Wed,Thu,Fri,Sat)[(localtime)[6]];

Although books are not cheap, but they may include information that
might be valuable and they are portable and require no AC or battery
to operate.

Tom
ztml.com
 
D

David H. Adler

Reference book such as Programming Perl is a good alternate source of
getting the type of information that you're looking for.

As long as you keep in mind that it's an *alternate* source. The books
are not the definitive documentation, and are often out of date. I
think the last edition of PP covers 5.6.0 (certainly no later than
5.6.1).

dha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,351
Latest member
LolaD32479

Latest Threads

Top