• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: stupid coertion bug on dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >stupid coertion bug on dates (From: Reinforced Darkness <email@hidden>)

  • Prev by Date: Re: Really delete a file via AppleScript
  • Next by Date: Re: Really delete a file via AppleScript
  • Previous by thread: Re: stupid coertion bug on dates
  • Next by thread: stupid coertion bug on dates
  • Index(es):
    • Date
    • Thread