Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 14 Nov 2008 21:09:03 +0100
Arrghl ... Yeah, you are right! Man, I was blind (or just dumb

). This works, thank you very much!
No no no nooooooo, it's not that easy

You can't compare time stamps like that. Check the contents of t.time. It is a string like:
14-Nov-08 21:06:23
If you use the lesser than/greater than operators on such a string it does a simple alphabetical compare. e.g.
Code: Select all
"a" > "b" ----> FALSE
"c" > "b" ----> TRUE
If you want to compare time stamps to see which is older or newer, you'll have to do it the hard way: viz. split up the string and compare all components (year, month, day, hour, minute, second). Admittedly, a Hollywood function which does this would be a desideratum