French Republican calendar: Difference between revisions

Content added Content deleted
m (Formatting.)
Line 1,149: Line 1,149:
let day = (rdate.day - 1) + (rdate.month - 1) * 30 + (rdate.year - 1) * 365 + rdate.year div 4
let day = (rdate.day - 1) + (rdate.month - 1) * 30 + (rdate.year - 1) * 365 + rdate.year div 4
result = FirstRcDate + initTimeInterval(days = day)
result = FirstRcDate + initTimeInterval(days = day)



proc toGregorian(rdate: string): string =
proc toGregorian(rdate: string): string =