S sorex Expert Licensed User Longtime User Feb 29, 2016 #1 Happy birthday for those who can only celebrate it once every 4 years! I don't know if there are any on the forum here if so have a good one!
Happy birthday for those who can only celebrate it once every 4 years! I don't know if there are any on the forum here if so have a good one!
Erel B4X founder Staff member Licensed User Longtime User Feb 29, 2016 #2 Four years ago: https://www.b4x.com/android/forum/threads/urgent-help-all-b4p-exe-are-crashing.15494/ No Google quiz: Will 2100 be a leap year? Was 2000 a leap year? Why?
Four years ago: https://www.b4x.com/android/forum/threads/urgent-help-all-b4p-exe-are-crashing.15494/ No Google quiz: Will 2100 be a leap year? Was 2000 a leap year? Why?
S sorex Expert Licensed User Longtime User Feb 29, 2016 #3 As a kid at school we learned it was every 4 years but that ain't true. Some more rules are involved but as I'm not allowed to look it up and can't tell you more
As a kid at school we learned it was every 4 years but that ain't true. Some more rules are involved but as I'm not allowed to look it up and can't tell you more
Beja Expert Licensed User Longtime User Feb 29, 2016 #4 sorex said: As a kid at school we learned it was every 4 years but that ain't true. Some more rules are involved but as I'm not allowed to look it up and can't tell you more Click to expand... 2000 was a leap year but 2100 will not.. Thanks Erel I didn't know that before.. I will modify my app license expiration date accordingly.
sorex said: As a kid at school we learned it was every 4 years but that ain't true. Some more rules are involved but as I'm not allowed to look it up and can't tell you more Click to expand... 2000 was a leap year but 2100 will not.. Thanks Erel I didn't know that before.. I will modify my app license expiration date accordingly.
Beja Expert Licensed User Longtime User Feb 29, 2016 #5 Happy New Leap! Don't understand but I think like celebrating an African king's birthday. Last edited: Feb 29, 2016
LucaMs Expert Licensed User Longtime User Feb 29, 2016 #6 So, after the "millennium bug" there is the "leap year bug"
Johan Schoeman Expert Licensed User Longtime User Feb 29, 2016 #7 Erel said: Four years ago: https://www.b4x.com/android/forum/threads/urgent-help-all-b4p-exe-are-crashing.15494/ No Google quiz: Will 2100 be a leap year? Was 2000 a leap year? Why? Click to expand... When the last two digits are 00 then it will be a leap year if the first two digits are divisible by 4 (with a remainder of 0). The next leap year that ends with the last two digits as 00 will thus be 2400.
Erel said: Four years ago: https://www.b4x.com/android/forum/threads/urgent-help-all-b4p-exe-are-crashing.15494/ No Google quiz: Will 2100 be a leap year? Was 2000 a leap year? Why? Click to expand... When the last two digits are 00 then it will be a leap year if the first two digits are divisible by 4 (with a remainder of 0). The next leap year that ends with the last two digits as 00 will thus be 2400.
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2016 #8 That's the correct answer. Based on the Gregorian calendar the average number of days per year is 365.2425 => 365 + 1/4 - 1 / 100 + 1 / 400 => Code: Copy Sub IsLeapYear(year As Int) As Boolean If year mod 4 = 0 Then If year mod 400 = 0 Or year mod 100 <> 0 Then Return True End If End If Return False End Sub
That's the correct answer. Based on the Gregorian calendar the average number of days per year is 365.2425 => 365 + 1/4 - 1 / 100 + 1 / 400 => Code: Copy Sub IsLeapYear(year As Int) As Boolean If year mod 4 = 0 Then If year mod 400 = 0 Or year mod 100 <> 0 Then Return True End If End If Return False End Sub
eurojam Well-Known Member Licensed User Longtime User Mar 1, 2016 #9 yesterday we had a leap year bug: we are providing a service called wmsbox.de (a web mapping service based on a cloud service). you can order it online, the shop is based on Drupal. Yesterday all our customers got an email, that their subscription has been expired yesterday....the reason was, the shop module ubercart didn't realize the 29th as a valid date. The interesting thing was, that some customers booked a new period, although it wasn't realy expired. That leads us to the decision, that every year should have a 29th of Feburary or better two...
yesterday we had a leap year bug: we are providing a service called wmsbox.de (a web mapping service based on a cloud service). you can order it online, the shop is based on Drupal. Yesterday all our customers got an email, that their subscription has been expired yesterday....the reason was, the shop module ubercart didn't realize the 29th as a valid date. The interesting thing was, that some customers booked a new period, although it wasn't realy expired. That leads us to the decision, that every year should have a 29th of Feburary or better two...
S sorex Expert Licensed User Longtime User Mar 1, 2016 #10 In the newspaper they mentioned that new versions of a digital tv provider in Belgium's digital decoder had a leap bug aswell. People with such decoder couldn't watch programs as the date didn't exist
In the newspaper they mentioned that new versions of a digital tv provider in Belgium's digital decoder had a leap bug aswell. People with such decoder couldn't watch programs as the date didn't exist
eurojam Well-Known Member Licensed User Longtime User Mar 1, 2016 #11 so lucky, that the B4X forum wasn't affected by a leap bug...all systems up, all questions answered, all users happy...thumb up
so lucky, that the B4X forum wasn't affected by a leap bug...all systems up, all questions answered, all users happy...thumb up