• 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: Week of year - odd/even week
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Week of year - odd/even week


  • Subject: Re: Week of year - odd/even week
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 31 Jan 2002 16:32:03 -0700

On 1/31/02 4:05 PM, Emmanuel <email@hidden> wrote:

>1 + ((theDate - theFirst) div (7 * 86400))

Question:

86400 is the number of seconds in a day, so why not use (days * 7) or,
even better, (weeks)?

They're predefined constants, and mean a lot more than the raw numbers.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Problems with speed & "Info For"
  • Next by Date: Re: How to coerce a real to an integer in X?
  • Previous by thread: Re: Week of year - odd/even week
  • Next by thread: Re: Week of year - odd/even week
  • Index(es):
    • Date
    • Thread