• 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: getting the date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the date


  • Subject: Re: getting the date
  • From: Walter Ian Kaye <email@hidden>
  • Date: Tue, 30 Dec 2003 19:49:48 -0800

At 06:28p -0500 12/30/2003, Graff didst inscribe upon an electronic papyrus:

((b - theDate) div -2500000 + 1 )

Which takes the difference (in seconds) between the current date and and the the same day in January, divides that by 289 days (in seconds) and adds a month. This gives you the current month, roughly. This will probably work fine but I'd worry about it being correct under all circumstances.

OK, but then what makes 289 days so magical?


thanks,
-boo
not a mathematician
_______________________________________________
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.

  • Follow-Ups:
    • Re: getting the date
      • From: Graff <email@hidden>
References: 
 >Re: getting the date (From: Nigel Garvey <email@hidden>)
 >Re: getting the date (From: Walter Ian Kaye <email@hidden>)
 >Re: getting the date (From: Graff <email@hidden>)

  • Prev by Date: Re: Checking for logged on guests
  • Next by Date: Re: getting the date
  • Previous by thread: Re: getting the date
  • Next by thread: Re: getting the date
  • Index(es):
    • Date
    • Thread