Re: stupid coertion bug on dates
Re: stupid coertion bug on dates
- Subject: Re: stupid coertion bug on dates
- From: John Delacour <email@hidden>
- Date: Sun, 3 Aug 2003 17:37:52 +0100
On Sunday, August 3, 2003, at 3:50 PM, Reinforced Darkness wrote:
Hi,
try this :
//
(current date) - "Sunday 3 August 2003 16:16:21"
//
it works fine
Not here it doesn't, and I'm not surprised.
try now this :
//
set x to "Sunday 3 August 2003 16:16:21"
(current date) - x
//
--> error : can't make of "Sunday 3 August 2003 16:16:21" a date
Ditto.
Try these:
set x to date "Sunday, August 3, 2003 4:16:21 pm"
(current date) - x
date string of (current date)
date string of ((current date) - 333333)
set d to "Sunday, August 3, 2003 4:16:21 pm"
(current date) - (get date d)
set d to "0"
(current date) - (get date d)
_______________________________________________
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.