>On Wed, 15 Jan 2003, Jean Forget wrote: > >> > Who needs %E* and %O* modifiers? >> >> I need them. The traditional way to write a FR year is to use Roman >> numerals. So, while %Y gives you the Indian-Arabian numerals (2003), >> %EY gives you the Roman numerals (MMIII). At the same time, while >> %j gives you the 1..366 number of a day, %Ej gives you the designation >> of the day (which was meant to replace the saint of the day). > >So what about %O*? Apparently that does Roman numerals, at least >sometimes. Where is this stuff actually defined? > I discovered about %E* and %O* in AIX's date(1) manpage. Nothing about that in Linux's date manpage. The basic specifiers are pretty much consistently defined, but not so for %E* and %O*. And maybe I inadvertently swapped %EY and %OY about Roman numerals.
>I don't mind adding Roman numeral strftime specifiers. For saint days, >you're on your own. This would belong in an add in module (or set of >modules, one per language/religion combo? ;) ). > I coded %Ej for French Revolutionary calendar because it is simple. Gregorian saints are much more difficult because of mobile holidays (Easter, most notably). If nobody has enough time or energy to spare about exotic %E* and %O* modifiers for Gregorian calendar, just forget about them. Jean -- WYGIWYGAINGW = "What You Get Is What You're Given And It's No Good Whining." Archichancelier Mustrum Ridcully (cité par Terry Prachett dans The Science of Discworld)