

And after another 2-year delay it will be removed. In the release after this 2-year delay, the %L specifier will produce a warning. For the next two years, it will function as previously. I will deprecate this speficier in the next module releases. There are plenty of strftime-like libraries visible on the Internet, none of them has a %L specifier for the year. The problem is that I have forgotten why I have implemented this specifier. This is because in the Revolutionary calendar, the beginning of a year is always aligned with the beginning of a décade, while in the Gregorian calendar, the beginning of a year is usually not aligned with the beginning of a week. There is no difference between these three variants. The following field descriptors are recognized: %y The format parameter to date_string is a string consisting of any characters (letters, digits, whitespace, other) with %-prefixed field descriptors, inspired from the Unix standard date(1) command. You can give an string parameter to adjust the date format to your preferences. For the moment, this method is available only for Date::Convert::French_Rev invocant objects. The invocant is the Date::Convert:: whatever object to convert, the parameter is the class name of the destination calendar. change_toĬhange the date to a new format. The invocant is the class name of the destination calendar, the parameter is the Date::Convert:: whatever object to convert. Return just the day number element of date. Return the month element of date, or 13 if the date is an additional day at the end of the year. The end-of-year additional days are assigned to the virtual 13th month. $date = Date::Convert::French_Rev->new(8, 2, 18)Įxtract a list consisting of the year, the month and the day. EXPORTSĬreate a new Revolutionary date object with the specified year, month, day parameters, e.g. Yet, if you do not use the date_string accessor, you can use a lower version of Perl. is "1799 Nov 9" REQUIRESĪ Unicode-friendly version of Perl, that is, more or less, Perl 5.8.8 or greater. $date->change_to("Date::Convert::Gregorian") is "1799 Nov 9"Īlternate way of converting from Revolutionary to Gregorian (or other) $date = Date::Convert::French_Rev->new(8, 2, 18) # 18 Brumaire VIII. or "Octidi 18 Brumaire VIII jour de la dentelaire"Ĭonverting from Revolutionary to Gregorian (or other) $date = Date::Convert::French_Rev->new(8, 2, 18) # 18 Brumaire VIII.ĭate::Convert::Gregorian->convert($date) Print $date->date_string($format), "\n" #. Date::Convert::French_Rev - Convert from / to French Revolutionary Calendar SYNOPSIS use Date::Convert::French_Rev Ĭonverting from Gregorian (or other) to Revolutionary $date = Date::Convert::Gregorian->new(1799, 11, 9) # 9th November 1799.ĭate::Convert::French_Rev->convert($date)
