Re: Re: Some date math
Re: Re: Some date math
- Subject: Re: Re: Some date math
- From: admin <email@hidden>
- Date: Tue, 25 Feb 2003 08:25:00 -0600
Perhaps more elegantly:
get (current date) - 1 * days -- on Tues, Feb. 25
-- date "Monday, February 24, 2003 8:19:16 AM"
the default time unit is second, there are appropriately named
conversion factors for minutes, hours, days, and weeks. Months are
variable length, and technically years and therefor centuries are also,
so they aren't built in as constants.
al
On Monday, February 24, 2003, at 07:25 PM,
email@hidden wrote:
>
Subject: Re: Some date math
>
>
At 1:33 am +0100 25/2/03, Michael Slomski wrote:
>
>
> Does anyone know how to get the date of yesterday.
>
> 3get current date2 will get the current day. Fine.
>
> 3get current date - 1 displays also the current date. So what can I
>
> do?
>
>
(current date) - (60 * 60 * 24)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.