Skip Menu |

This queue is for tickets about the DateTime-Calendar-FrenchRevolutionary CPAN distribution.

Report information
The Basics
Id: 17231
Status: resolved
Priority: 0/
Queue: DateTime-Calendar-FrenchRevolutionary

People
Owner: Nobody in particular
Requestors: book [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.07
Fixed in: (no value)



Subject: Need a strftime specifier for the feast
DateTime::Calendar::FrenchRevolutionary doesn't have any way to specify the feast in a strftime format string. Could you add one? For example, DateTime::Calendar::Pataphysical use %* for the feast. Thanks!
Le Lun. Jan. 23 14:49:53 2006, BOOK a écrit : Show quoted text
> DateTime::Calendar::FrenchRevolutionary doesn't have any way to > specify the feast in a strftime format string. Could you add one? > > For example, DateTime::Calendar::Pataphysical use %* for the feast. > > Thanks!
There are already 3 specifiers: %Ej, %EJ and %Oj. They are coded in DT::C:FR.pm, tested in t/50-format.t and illustrated by an example in eg/today. The only problem is that they are not documented in DT::C::FR.pm (yet they were documented in Date::Convert::French_Rev) The use of "E" and "O" prefixes is based on AIX's date(1) specifiers, with %Ex being an extended format for %x (where x is a placeholder) and %Ox is a localized format for %x.
Subject: Re: [rt.cpan.org #17231] Need a strftime specifier for the feast
Date: Wed, 25 Jan 2006 10:06:45 +0100
To: via RT <bug-DateTime-Calendar-FrenchRevolutionary [...] rt.cpan.org>
From: philippe.bruhat [...] free.fr (Philippe 'BooK' Bruhat)
Le mercredi 25 janvier 2006 à 01:40, via RT écrivait: Show quoted text
> Le Lun. Jan. 23 14:49:53 2006, BOOK a écrit :
> > DateTime::Calendar::FrenchRevolutionary doesn't have any way to > > specify the feast in a strftime format string. Could you add one? > > > > For example, DateTime::Calendar::Pataphysical use %* for the feast. > > > > Thanks!
> > There are already 3 specifiers: %Ej, %EJ and %Oj. They > are coded in DT::C:FR.pm, tested in t/50-format.t and illustrated > by an example in eg/today. > > The only problem is that they are not documented in DT::C::FR.pm > (yet they were documented in Date::Convert::French_Rev) > > The use of "E" and "O" prefixes is based on AIX's date(1) specifiers, > with %Ex being an extended format for %x (where x is a placeholder) > and %Ox is a localized format for %x.
Thanks you very much for the information. :-) -- Philippe "BooK" Bruhat Few things in life are so dependable as the incompetence of those who know precisely what they are doing. (Moral from Groo The Wanderer #5 (Pacific))
On Mon Jan 23 14:49:53 2006, BOOK wrote: Show quoted text
> DateTime::Calendar::FrenchRevolutionary doesn't have any way to > specify the feast in a strftime format string. Could you add one? > > For example, DateTime::Calendar::Pataphysical use %* for the feast. > > Thanks!
In version 0.08, %* does the same as %Ej, it prints the feast in long form, that is, with "jour de".