French Republican calendar: Difference between revisions
m
Go bugfix
SqrtNegInf (talk | contribs) m (→{{header|Perl}}: only 'state' feature needed) |
m (Go bugfix) |
||
Line 326:
func dayToRep(day int) (d, m, y int) {
y = (day-1) * 100 / 36525
if repLeap(y) {
y--
}
d = day - (y+1)*36525/100 + 365 + (y+1)/100 - (y+1)/400
y++
m = 1
Line 345:
m = 1
y++
sansculottides = 5
if repLeap(y) {
sansculottides = 6
}
}
}
Line 518 ⟶ 522:
func dayToRep(day int) (d, m, y int) {
y = (day-1) * 100 / 36525
if repLeap(y) {
y--
}
d = day - (y+1)*36525/100 + 365 + (y+1)/100 - (y+1)/400
y++
m = 1
Line 537 ⟶ 541:
m = 1
y++
sansculottides = 5
if repLeap(y) {
sansculottides = 6
}
}
}
|