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

Re: Date computation


  • Subject: Re: Date computation
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 7 Jan 2005 13:37:51 -0700

On Jan 7, 2005, at 1:08 PM, Nigel Garvey wrote:

The difference, expressed in what units?  And I still don't see where
the most recent Wednesday is achieved here.

The difference is in seconds, still.

Yeah, I finally figured that out.

The modding by 'weeks' gets rid of
the exact number of weeks between 00:00:00 on Wednesday 1 Jan 1000 and
00:00:00 on the Wednesday before (or including) the 14th of the current
month, leaving just the number of seconds from the latter date/time to
the date/time of 'b'. When these seconds are subtracted from b, the
result is the required Wednesday date/time.

I had to think about that about three or four times before it sank in.

Thanks again,

-- Michelle

--
There are three kinds of computer users:

1. Those who use a Mac
2. Those who wish they could use a Mac
3. Those who don't know any better

_______________________________________________
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: 
 >Re: Date computation (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Date computation
  • Next by Date: Re: ftp chokes my mac....
  • Previous by thread: Re: Date computation
  • Next by thread: Re: Date computation
  • Index(es):
    • Date
    • Thread