Re: Date manipulation
Re: Date manipulation
- Subject: Re: Date manipulation
- From: Emile Schwarz <email@hidden>
- Date: Sat, 08 Jul 2006 19:56:22 +0200
You are totally right, Michelle.
This happens also for day and month but only for the negative computations...
In the other way, you can set the day or the month to any positive value: month
and year are updated.
I wanted to write something (some question) about that, but I didn't had time to
do that.
If the Hour is 18, and you set a negative value from 1 to 17, it works fine.
Same apply to day (max value is the current day number - 1) and month...
Apple Engineer, where are you ? Isn't it possible to auto update the computation
in the now to past in the same way it works for now to future...
Cheers,
Emile
email@hidden wrote:
Date: Sat, 8 Jul 2006 07:54:20 -0700
From: Michelle Steiner <email@hidden>
Subject: Date manipulation
To: Applescript Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
This works:
set today to date "Tuesday, July 8, 2008 8:00:0 AM"
set time of today to (time of today) + anything
This doesn't:
set today to date "Tuesday, July 8, 2008 8:00:0 AM"
set time of today to (time of today) - something
if "something" causes "today" to be the previous day (or earlier).
However, it works if it causes it to be earlier in the same day.
--> "Can't make some data into the expected type."
-- Michelle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden