Search found 37 matches: leap

Return to advanced search

Using Clipper C-Functions within FWH ?

... h - files included ). Is there something special, to take care of ? C - sample to calculate the ISO-week-Number ( week-splitting, julian-date and leap-year is calculated ) : #include "extend.h" #include "headpwa5.h" extern int _dat_pruef(int, int, int), _is_schalt(int); ...
by ukoenig
Wed Dec 31, 2008 11:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Clipper C-Functions within FWH ?
Replies: 2
Views: 553

Re: ISO 8601 Week Numbers

... given by: DP( y, 1 ) = 0 DP( y, m+1 ) = DP( y, m ) + ML( y, m ) and ML ("Month Length") is defined as: ML( y, 1 ) = 31 ML( y, 2 ) = 28 + LEAP( y ) ML( y, 3 ) = 31 ML( y, 4 ) = 30 ML( y, 5 ) = 31 ML( y, 6 ) = 30 ML( y, 7 ) = 31 ML( y, 8 ) = 31 ML( y, 9 ) = 30 ML( y, 10 ) = 31 ML( y, 11 ...
by ukoenig
Tue Dec 30, 2008 10:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ISO 8601 Week Numbers
Replies: 20
Views: 6525

Re: ISO 8601 Week Numbers

... week 1 of any year is the week that contains the first Thursday in January. Most years have 52 weeks, but years that start on a Thursday and leap years that start on a Wednesday have 53 weeks. Jan 1 may well be in week 53 of the previous year! Only defined for dates on or after 1600 Jan 01. ...
by ukoenig
Tue Dec 30, 2008 9:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ISO 8601 Week Numbers
Replies: 20
Views: 6525

Re: ISO 8601 Week Numbers

Hello Darrell, I noticed, that nearly all date-calculations don't take care of a LEAP-YEAR. I will check this, maybe that is the reason for wrong calculations. February 29, 2008 The year 2008 is a leap year. If you look at a 2008 calendar, you will see that February ...
by ukoenig
Tue Dec 30, 2008 4:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ISO 8601 Week Numbers
Replies: 20
Views: 6525

A simple month calendar

... code to increment by any number of months (forward or backwards) and the same for years. That code looks slightly complicated but its to allow for leap years. MoveYears( iIncrement), it has just occurred to me, could be implemented as: METHOD MoveYears( iIncrement ) CLASS CALENDAR ::MoveNonths( ...
by xProgrammer
Tue Jul 29, 2008 12:56 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: A simple month calendar
Replies: 2
Views: 987

... month or year - click on a day to select it and auto-insert it into date field - automatic correct calculation of calendar for any year, including leap years - click <Cancel> to abort date selection - complete source provided plus .RC for calendar dialog
by Roger Seiler
Tue Jan 01, 2008 3:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Date Picker
Replies: 8
Views: 2671

COBOL humour

... He was thrilled. The next thing he would know is he'd wake up in the year 2000; after the New Year celebrations and computer debacles; after the leap day. Nothing else to worry about except getting on with his life. He was put into his cryogenic receptacle, the technicians set the revive date, ...
by modicr
Sun Jan 08, 2006 8:50 pm
 
Forum: Off Topic / Otros temas
Topic: COBOL humour
Replies: 0
Views: 888
Previous

Return to advanced search