Hi Andy,
Fortunately, this isn't too bad to do. The intermediate form of dates
is a long integer representing the number of milliseconds since an
epoch. Typically, midnight, January 1st, 1970 I think.
I'd use ticks() to get the current day/time. If you want to round it a
little, use &formatDate with MM dd yy to turn ticks() into a value
representing today without the current hour, minute, second, and
milliseconds.
I'd then subtract 24 hours from this.
I'd then use formatDate again to turn the new value into whatever you
need it to look like.
I think Chapter 2 of the Sleep manual covers the date/time formats.
The function reference for parseDate/formatDate will point you to it.
-- Raphael
> --
> -----
> To post to this group, send email to
sleep-de...@googlegroups.com
> To unsubscribe from this group, send email to
sleep-develope...@googlegroups.com
> For more options, visit this group at
http://groups.google.com/group/sleep-developers?hl=en
>
> The Sleep Scripting Project:
http://sleep.dashnine.org/