• 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: A few questions about dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few questions about dates


  • Subject: Re: A few questions about dates
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 26 Aug 2006 19:30:00 -0700

On Aug 26, 2006, at 7:27 PM, kai wrote:

set x to "july 4, 1776"
set y to "July 4, 2006"
set z to (current date) - (date x)
(z / days) / 365.24

--> 230.14674077826

But that is some 53 days off; when did the US move from the Julian calendar to the Gregorian? And how many days difference did that cause?

set x to "july 4, 1776" set y to "July 4, 2006" set z to (date y) - (date x) z mod (days * 365.24) / days --> 365.04

:-)

Argh! Sloppy preafrooding and sloppy editing. *sigh*

--
Democrats think the glass is half full. Republicans think the glass is theirs



_______________________________________________ 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
References: 
 >A few questions about dates (From: Sweth Chandramouli <email@hidden>)
 >Re: A few questions about dates (From: Michelle Steiner <email@hidden>)
 >Re: A few questions about dates (From: kai <email@hidden>)

  • Prev by Date: Re: A few questions about dates
  • Next by Date: Re: A few questions about dates
  • Previous by thread: Re: A few questions about dates
  • Next by thread: Re: A few questions about dates
  • Index(es):
    • Date
    • Thread