bauhsoj
02-14-2008, 01:48 AM
I have here what should be a no brainer, and perhaps it is the lack of sleep and the long hours today, but I need someone to confirm for me that my logic with the following is on target.
If I want to find all records that were dated either '0', or no older than (approx) 6 months in the past, then the following condition should work for that, correct?
UNIX_TIMESTAMP() - 6*30*24*60*60 > table.dated
The field 'dated' is of course a UNIX timestamp integer field.
If I want to find all records that were dated either '0', or no older than (approx) 6 months in the past, then the following condition should work for that, correct?
UNIX_TIMESTAMP() - 6*30*24*60*60 > table.dated
The field 'dated' is of course a UNIX timestamp integer field.