From: Don S. <do...@se...> - 2003-03-25 13:39:42
|
Mike Noyes pointed me out the PEAR Date classes that have a compare function. However for that you need to instantiate two PEAR Date objects and than pass those objects into the Date::compare() function. Seems like overkill to me. For now I'm converting my dates to unix timestamps and comparing <,==,> that way. *shrug* Don. On Mon, 24 Mar 2003, Don Seiler wrote: > Is there not a standard function to compare two dates? Something link > Date_Cmp in perl? > > If not, can we come up with one that is agreeable and put it in > core/DateTime.php ? > > Basically a function that takes two date parameters (timestamps?), and > returns -1 if param A is less than param B, 0 if they are equal, and 1 if > param A is greater than param B. > > Any thoughts? > > Don. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > > |