Page 1 of 1

date difference [SOLVED]

Posted: Tue Jul 12, 2005 11:13 am
by someberry
Just wondering what would be the best way to test whether a timestamp is greater than, or less that a timestamp in the past/future.

For instance, a timestamp now (This current minute/second), how would you go about testing to see if it is greater/less than the timestamp on the 23:59:59, 31st July, 2005. Of course, the dates would change as we progress in history.

If you get what I mean :s
Someberry

Posted: Tue Jul 12, 2005 11:38 am
by SidewinderX
just store each time stamp as a variable and use comparison operators
<
>
==
<=
>=