CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Is there a perl library for adding/subtracting dates and times?

 



kind1
Deleted

Mar 4, 2000, 11:35 AM

Post #1 of 3 (677 views)
Is there a perl library for adding/subtracting dates and times? Can't Post

Hello. Just wanted to know if there is a perl library that allows you to add and subtract dates and times -

for example if you subtract 2 days from the date 01/01/2000 you would get 12/30/1999 or if you add 3 hours to date/time 02/26/2000 23:30 you would get 02/27/2000 02:30.

Also need to be able to execute a piece of code if it is between 9am and 5pm so comparison operators need to work too.

Please point me in the right direction if this exists and if there is already a nice faq or tutorial on this.

Thanks,
kind1



Cure
User

Mar 12, 2000, 8:45 AM

Post #2 of 3 (677 views)
Re: Is there a perl library for adding/subtracting dates and times? [In reply to] Can't Post

Hi kind1

Check out Date::Manip


Cure


japhy
Enthusiast

Mar 13, 2000, 9:44 AM

Post #3 of 3 (677 views)
Re: Is there a perl library for adding/subtracting dates and times? [In reply to] Can't Post

If you don't need to full vigor of Date::Manip, Date::Calc might be for you. These can be found at http://search.cpan.org/.

Date::Manip has been said to be "everything, and the kitchen sink."

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives