Mercurial > hg > xemacs-beta
comparison src/editfns.c @ 5254:1537701f08a1
Support Roman month numbers, #'format-time-string
src/ChangeLog addition:
2010-09-02 Aidan Kehoe <kehoea@parhasard.net>
* strftime.c (roman_upper, roman_lower, strftime):
Implement Roman month numbers, as used in central and eastern
Europe.
* editfns.c (Fformat_time_string):
Document two new escapes, to allow uppercase and lowercase Roman
month numbers. Remove documentation of a bug that we didn't
actually have.
* text.h (Qtime_function_encoding): We know the text encoding
coming from strftime(), because we always use the one in
strftime.c. Don't use Qnative.
man/ChangeLog addition:
2010-09-02 Aidan Kehoe <kehoea@parhasard.net>
* lispref/os.texi (Time Conversion):
Document the new #'format-time-string flags for Roman month
numbers.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 02 Sep 2010 12:00:06 +0100 |
parents | 3c3c1d139863 |
children | 1ed4cefddd12 |
comparison
equal
deleted
inserted
replaced
5253:b6a398dbb403 | 5254:1537701f08a1 |
---|---|
1042 %X is a locale-specific synonym, which defaults to "%T" in the C locale. | 1042 %X is a locale-specific synonym, which defaults to "%T" in the C locale. |
1043 %y is replaced by the year without century (00-99). | 1043 %y is replaced by the year without century (00-99). |
1044 %Y is replaced by the year with century. | 1044 %Y is replaced by the year with century. |
1045 %z is replaced by the time zone as a numeric offset (e.g +0530, -0800 etc.) | 1045 %z is replaced by the time zone as a numeric offset (e.g +0530, -0800 etc.) |
1046 %Z is replaced by the time zone abbreviation. | 1046 %Z is replaced by the time zone abbreviation. |
1047 %\xe6 is replaced by the month as a lowercase Roman number (i-xii) | |
1048 %\xc6 is replaced by the month as an uppercase Roman number (I-XII) | |
1047 | 1049 |
1048 The number of options reflects the `strftime' function. | 1050 The number of options reflects the `strftime' function. |
1049 | |
1050 BUG: If the charset used by the current locale is not ISO 8859-1, the | |
1051 characters appearing in the day and month names may be incorrect. | |
1052 */ | 1051 */ |
1053 (format_string, time_)) | 1052 (format_string, time_)) |
1054 { | 1053 { |
1055 time_t value; | 1054 time_t value; |
1056 Bytecount size; | 1055 Bytecount size; |