Problem of the Day
A new programming or logic puzzle every Mon-Fri

Gregorian To French

Happy first day of July!

Today's problem is a fun one for the history buffs. You'll be creating a program that can convert a day from the Gregorian Calendar to one in the French Republican Calendar. Your program or function will take in a year, month, and day and return the converted result. You can read more about the French Republican Calendar on the Wikipedia page (https://en.wikipedia.org/wiki/French_Republican_Calendar) along with an example on how to do the conversion.

For bonus points create a way to convert from French back to Gregorian.

Permalink: http://problemotd.com/problem/gregorian-to-french/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein