Recurring Dates Script
Sarah Reichelt
sarahr at genesearch.com.au
Sun Jan 11 17:21:01 EST 2004
Hi Jim,
I don't know exactly what sort of recurring dates you are planning, but
you will find that using the dateItems format works really well for
date calculations:
Try something like this:
put the seconds into theDate
convert theDate to dateItems
-- 2004,1,12,8,16,46,2
-- see the docs for dateItems to check what each item is.
Now you can edit any of these items WITHOUT having to worry about
whether it results in a correct date. When you convert it back, the
engine will make it into a real date.
add 18 to item 2 of theDate -- item 2 = month, so move 18 months
forward
-- 2004,19,12,8,18,26,2
convert theDate to long date
-- Tuesday, July 12, 2005
Hope this helps,
Sarah
On 12 Jan 2004, at 1:59 am, Jim Carwardine wrote:
> Has anyone written a script that handles recurring dates like Outlook
> or
> Entourage do? Jim
> --
>
> OYF is... Highly resourceful people working together.
> <http://www.OwnYourFuture-net.com>
>
> Own Your Future Consulting Services Limited,
> 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
> Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
More information about the use-livecode
mailing list