Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

define leap year

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word newusers
View previous topic :: View next topic  
Author Message
Klam
Guest





PostPosted: Wed Dec 19, 2007 8:15 am    Post subject: define leap year Reply with quote

Year 2008 is a leap year and every 4 years Feb will have 29.

We provide contract on annual bases and the calcualtion is based on 365 days

if the period contain Feb 29 2008 then the annual contract day will be 366
days
if this is the case tell the computer it should be 365
and how can my database will recvcognize it t=in furutre leap year.


klam
Back to top
Google
Sponsor





PostPosted: Wed Dec 19, 2007 8:15 am    Post subject: Advertisement

Back to top
macropod
Guest





PostPosted: Wed Dec 19, 2007 8:55 am    Post subject: Re: define leap year Reply with quote

Hi Klam,

This question does not appear to relate to Microsoft Word.

Having said that, a contract on annual basis should not ignore leap years - either they're 365-day contracts, or they're annual
contracts (which implicitly allow for the possibility that the terms of the contracts include 29 Feb in a leap year).

Plus, the leap year formula is a bit more complicated:

If year mod 400 = 0 then
'Leap Year'
ElseIf year mod 100 = 0 then
'Not Leap Year'
ElseIf year mod 4 = 0 then
'Leap Year'
Else
'Not Leap Year'
End If

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Klam" <Klam@discussions.microsoft.com> wrote in message news:AEBB3EB2-8AEC-4D2A-B396-33051DD6764E@microsoft.com...
Quote:
Year 2008 is a leap year and every 4 years Feb will have 29.

We provide contract on annual bases and the calcualtion is based on 365 days

if the period contain Feb 29 2008 then the annual contract day will be 366
days
if this is the case tell the computer it should be 365
and how can my database will recvcognize it t=in furutre leap year.


klam
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word newusers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum