Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Create custom date queries for Spotlight' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Create custom date queries for Spotlight
Authored by: dtrevas on May 20, '05 06:51:14PM

What this line

kMDItemFSContentChangeDate >= 137304000 && kMDItemFSContentChangeDate < 137390400

seems to be is the number of seconds since January 1, 2001 and I am guessing that it means midnight GMT.

One way to do this is a slightly less cryptic notation. You could write $time.iso(20050509T000000) where the T separates the date from the time.

2005 This year
05 May
09 the day of the month
00 midnight hour
00 minute
00 second.

One day some genius is going to let us write something like "kMDItemFSCreationDate between 5/9/05 and 5/11/05 at 4 pm CDT."

[ Reply to This | # ]
10.4: Create custom date queries for Spotlight
Authored by: lapidary on Jan 14, '06 06:11:52AM
do you know what ISO 8601 dates includes?
wikipedia has a good summery of it.
While it isn't exactly like you want, it's not as complacated as you thought when you orginally posted it.
take close notice to the fact it assumes local TZ.

[ Reply to This | # ]