Re: Date manipulation
Re: Date manipulation
- Subject: Re: Date manipulation
- From: Adam Bell <email@hidden>
- Date: Sat, 08 Jul 2006 12:23:57 -0300
- Comment:
This is what I use (having discovered the same thing the hard way):
set today to date "Tuesday, July 8, 2008 8:00:00 AM"
set sub to 11
set time of today to (time of (today - 1 * days)) + (24 - sub) * hours
today
At 7:54 AM -0700 7/8/06, Michelle Steiner wrote:
Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-86-117085480;
protocol="application/pkcs7-signature"
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
--
If Liberals hated America, they'd vote Republican.
Attachment converted: ACB-G5_1:smime 45.p7s ( / ) (00281C89)
_______________________________________________
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
_______________________________________________
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