On Thu, 18 Aug 2005, Roderick A. Anderson wrote:
If I have two datetime objects, $now_dt and $suspend_dt, both truncated to
minute, do I use a string comparison ge, le, eq ; numeric >=, <=, == ; or
something all together different that I didn't see in the docs?
Heck which is greater?
2005-08-18T15:11:00
or
2005-08-18T15:52:00
Looks like this never got answered.
You can use numerical or string comparison operators, cause DT.pm
overloads both, or you can use DateTime->compare if you want to be
explicit. Also see DateTime->compare_ignore_floating if you are going to
be mixing floating and non-floating time zones (which is a bad idea, BTW
;)
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/