Board index » delphi » Is 2000 a leap year?
M.H.N. Vel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
M.H.N. Vel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Is 2000 a leap year?
I heared that 2000 is a leap year, but I think it's not
how can I calculate if it is? I saw a formula somewhere but I can't find it anymore, so Thanks in advance. Mark. -- (-==--==--==--==-- /^--^\ --==--==--==--==--==--==--==--==--==--==--==--) |
Michael Herma
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?QuoteIn article <4gui6h$...@mimas.tc.hsa.nl>, w9...@tc.hsa.nl (M.H.N. Veldt) writes: |> how can I calculate if it is? |> |> I saw a formula somewhere but I can't find it anymore, so |> if anyone can send it to me. |> |> Thanks in advance. It is a leap year. Formula : Divisable by 4, not divisable by 100 or also divisable by 400 -Mike |
Sven Pr
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?QuoteIn article <4gui6h$...@mimas.tc.hsa.nl>, w9...@tc.hsa.nl (M.H.N. Veldt) wrote: Oh, NO! Not this discussion again please: 2000 IS a leap year (Centuries are regards Sven |
Andrea Feunek
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?Quotew9...@tc.hsa.nl (M.H.N. Veldt) wrote: divisible by 4, but centuries must also be divisible by 400. Thus, 1600 and 2000 are leap years, but 1800 and 1900 are not. Quote>-- |
s..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?Is the year 2000 a leap year? If I'm still programming with BP/TP 7.0 you can bet your a** that I'll |
rhank..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?In <4gui6h$...@mimas.tc.hsa.nl>, w9...@tc.hsa.nl (M.H.N. Veldt) writes: Quote> I heared that 2000 is a leap year, but I think it's not - if a year is divisible by 100 then it must be also be divisible by 400 to be a - all others are leap years if they are divisible by 4 |
Tom Wheele
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?In article <4h2qhc$1...@usenetw1.news.prodigy.com> VDGY...@prodigy.com "Brad Weikel" writes: Quote> Wow! Hitech, dontcha think? I made that program myself. -- |
ps-a..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?In <4h3sal$...@infoserv.rug.ac.be>, khaeg...@eduserv.rug.ac.be (Kurt Haegeman) writes: Quote>M.H.N. Veldt (w9...@tc.hsa.nl) wrote: 1) If the year number is dividable (without reminders) with 4, that year is Tomas Hajny, XHaj...@vse.cz on Internet |
Bette Sydel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?2000 is NOT a leap year. There have been too many leap years and because there are seconds of -Andy Sydelko |
Clemens Chi
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?Hi! Quotebsc...@vms.cis.pitt.edu (Bob Schor) wrote: 30th. So let's wait another 2004 years to check if this is true. :-) Ciao and bye, |
Tom Wheele
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?In article <Yx8J0dAZv2OxE...@merlyn.demon.co.uk> j...@merlyn.demon.co.uk "Dr John Stockton" writes: Quote> In article <4h16rd$...@reimari.uwasa.fi>, Timo Salmi from the Encyclopaedia Brittanica (1898) vol IV, p. 667. "According to the Gregorian rule of intercalculation, therefore, every year Everybody happy now? I'm sure some politicians will be around in the year |
Tom Wheele
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?QuoteIn article <4hiu4j$...@news.2sprint.net> ggr...@2sprint.net "Valtar" writes: a leap year, and that is all the coding that is neccesary. -- |
Jouke Numa
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?About leapdays: A 'normal' year has 365 full days. After that time the earth is supposed to have After 4 years this accumulates to 1 day, and therefore a leapday is inserted. After 100 years this accumulates to 1 day of over-correction, so the leapday is omitted After 400 years, this accumulates to 1 day of over-over-correction (are your still As you can see the year is now 0.0003 days too long, each 3333.333 years the leapday This method of determining leapyears was decreed by Pope Gregory XIII in 1582 and is The Julian Calendar had a leapday every 4 years so after 1600 years the seasons and the The following WEB-site has more information about time-related stuff: http://www.ast.cam.ac.uk/RGO/leaflets/ -- |
Timo Sal
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?In article <826082765...@tsys.demon.co.uk>, Tom Wheeley <t...@tsys.demon.co.uk> wrote: :In article <Yx8J0dAZv2OxE...@merlyn.demon.co.uk> : j...@merlyn.demon.co.uk "Dr John Stockton" writes: :> More seriously: this question has been raised several times recently in :> several of the newsgroups I read, and doubtless in many others too. :> I think that it would significantly reduce the number and lengths of the :"According to the Gregorian rule of intercalculation, therefore, every year Let's see everyone please if I managed to get it right for the next function ISLEAP (y : integer) : boolean; At least it passes the above quote by Tom, and gives the same All the best, Timo .................................................................... |
Tom Wheele
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Is 2000 a leap year?If I may quote another source (I'll probably get {*word*182}ed for this one :) [...] 20.32: Will 2000 be a leap year? Is (year % 4 == 0) an accurate test A: Yes and no, respectively. The full expression for the present year % 4 == 0 && (year % 100 != 0 || year % 400 == 0) See a good astronomical almanac or other reference for details. .splitbung |