ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ECS] days in month
Ingo Pakleppa
Sat, 31 Oct 1998 13:59:44 -0800

Easiest is probably a table:

Jan, Mar, May, Jul, Aug, Oct, Dec have 31 days.
Apr, Jun, Sep, Nov have 30 days.
Feb has 28 or 29 days. It has usually 28 days.

The exception is: in every year that is divisible by 4, Feb has 29 days.
The exception to the exception is: in every year that is divisible by 100,
Feb has 28 days.
The exception to the exception to the exception is: in every year that is
divisible by 400, Feb has 29 days.

Thus, until 2100, you don't need to worry - every year that is divisible by
4 (including 2000) is a leap year.

Ingo

At 08:12 AM 10/31/98 -0800, Mark Gilmore wrote:
>Does any know of a method (formula, etc) by which one
>can determine the # of days in a given month/year
>(accounting for leap years) ?
>-- 
>Mark Gilmore
>Omnipotence
>http://members.a2zsol.com/omnipotence.html
>
>--
>Please, turn off HTML (fancy colours, fonts, etc) when sending message to
list.
>To unsubscribe, e-mail: ecs-list-unsubscribe@vancouver.ml.org
>
+----------------------------------------------------------------+
| Ingo Pakleppa            mailto:ipakleppa@ecs.com              |
| Microsoft Certified Professional + Internet                    |
| Microsoft Certified Systems Engineer                           |
| Eagle Creek Systems, Inc., P.O.Box 888, Bonsall, CA 92003-0888 |
| http://www.ecs.com                                             |
| (w) Tel.: 760 731-3251  Fax: 760 731-0054                      |
+----------------------------------------------------------------+

  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.