To quote a previous Perl monger: " 'Date::Calc' is your friend"
http://search.cpan.org/~stbey/Date-Calc-5.4/Calc.pod Cheers, jtj -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roode, Eric Sent: Wednesday, September 20, 2006 10:33 AM To: [email protected] Subject: RE: Hour validation Interesting question. How do you mean "between"? Is 23:00 between 22:00 and 01:00? I would guess "yes", but that it's NOT between 01:00 and 22:00. Is that how you see it? If that's the case, it seems to me that B is between A and C if: A < B and B < C or A > C and (B > A or B < C) That is, A < B < C Or C < A < B Or B < C < A I think. Eric J. Roode Senior Enterprise Developer Barrack, Rodos & Bacine (215) 963-0600 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephane Legault Sent: Wednesday, September 20, 2006 12:57 PM To: [email protected] Subject: Hour validation Hi, I want to know id there is a module to valide if current time is between tow time value. Here example: it's now 13:00:00 and it's between 11:00 and 22:00 it's now 00:00:00 and it's between 23:00:00 and 2:00:00 I'am not new to perl but new to dealing with date and time. __________________________________________________________ Lèche-vitrine ou lèche-écran ? magasinage.yahoo.ca _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
