French Republican calendar: Difference between revisions

Content added Content deleted
Line 199: Line 199:


=={{header|FreeBASIC}}==
=={{header|FreeBASIC}}==
{{trans|BBC BASIC}}
Computes leap years using the "continuous" method: a year in the Republican calendar is a leap year if and only if the number of the <i>following</i> year is divisible by 4 but not by 100 unless also by 400. No attempt is made to deal with ill-formed or invalid input dates.
<lang freebasic>' version 18 Pluviose 227
<lang freebasic>' version 18 Pluviose 227
' compile with: fbc -s console
' compile with: fbc -s console