• 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: The latest AS date and AS Editor bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The latest AS date and AS Editor bugs


  • Subject: Re: The latest AS date and AS Editor bugs
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 10 Jun 2013 08:54:15 +0100

On 22/05/2013, at 3:37  PM, Nigel Garvey <email@hidden> wrote:

> there's now a 75-second discrepancy between date texts and other date
> properties which affects all dates up to and including 1 December 1847
> 00:01:14. eg.:
>
>  -- (Rearrange this specifier to compile on your own machine.)
>  tell date "Thursday 31 December 1846 23:59:59" to ¬
>    return its {weekday, day, month, year, hours, minutes, seconds, date string}
>  --> {Friday, 1, January, 1847, 0, 1, 14, "Thursday 31 December 1846"}

Let me take another stab at this. I've set my time zone to London, and I've also customized my Medium time string so that it includes the time zone. Now I'm going to build a date using the values returned in your result:

set x to current date
set hours of x to 0
set minutes of x to 1
set seconds of x to 14
set day of x to 1
set year of x to 1847
set month of x to 1
x

And the result I get is this:

date "Thursday, 31 December 1846 23:59:59 GMT-00:01:15"

So the date string matches fine, if you allow for the fact that the time zone has changed...

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Prev by Date: Re: InDesign CS6: Find out parent page of page item on the paste
  • Next by Date: Re: InDesign CS6: Find out parent page of page item on the pasteboard
  • Previous by thread: Re: InDesign CS6: Find out parent page of page item on the paste
  • Next by thread: Re: The latest AS date and AS Editor bugs
  • Index(es):
    • Date
    • Thread