diff options
| author | Eli Zaretskii | 2022-01-02 09:30:15 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-01-02 09:30:15 +0200 |
| commit | b477cff35d3f5513e57f71a34272bebd1c205ed3 (patch) | |
| tree | e8f1d9a54abcc0be2bec07002f0ebbc1218608a0 /src | |
| parent | 9156e109270b837b0b4f5740c305531754e72cf6 (diff) | |
| download | emacs-b477cff35d3f5513e57f71a34272bebd1c205ed3.tar.gz emacs-b477cff35d3f5513e57f71a34272bebd1c205ed3.zip | |
Clarify %g and %G time format specs
* src/timefns.c (Fformat_time_string):
* doc/lispref/os.texi (Time Parsing): Clarify %g/%G. (Bug#52934)
Diffstat (limited to 'src')
| -rw-r--r-- | src/timefns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/timefns.c b/src/timefns.c index 809ffafea4f..3e533ca51dc 100644 --- a/src/timefns.c +++ b/src/timefns.c | |||
| @@ -1422,8 +1422,9 @@ without consideration for daylight saving time. | |||
| 1422 | The value is a copy of FORMAT-STRING, but with certain constructs replaced | 1422 | The value is a copy of FORMAT-STRING, but with certain constructs replaced |
| 1423 | by text that describes the specified date and time in TIME: | 1423 | by text that describes the specified date and time in TIME: |
| 1424 | 1424 | ||
| 1425 | %Y is the year, %y within the century, %C the century. | 1425 | %Y is the year, %y year without century, %C the century. |
| 1426 | %G is the year corresponding to the ISO week, %g within the century. | 1426 | %G is the year corresponding to the ISO week, %g year corresponding |
| 1427 | to the ISO week, without century. | ||
| 1427 | %m is the numeric month. | 1428 | %m is the numeric month. |
| 1428 | %b and %h are the locale's abbreviated month name, %B the full name. | 1429 | %b and %h are the locale's abbreviated month name, %B the full name. |
| 1429 | (%h is not supported on MS-Windows.) | 1430 | (%h is not supported on MS-Windows.) |
| @@ -1431,7 +1432,7 @@ by text that describes the specified date and time in TIME: | |||
| 1431 | %u is the numeric day of week from 1 (Monday) to 7, %w from 0 (Sunday) to 6. | 1432 | %u is the numeric day of week from 1 (Monday) to 7, %w from 0 (Sunday) to 6. |
| 1432 | %a is the locale's abbreviated name of the day of week, %A the full name. | 1433 | %a is the locale's abbreviated name of the day of week, %A the full name. |
| 1433 | %U is the week number starting on Sunday, %W starting on Monday, | 1434 | %U is the week number starting on Sunday, %W starting on Monday, |
| 1434 | %V according to ISO 8601. | 1435 | %V the week number according to ISO 8601. |
| 1435 | %j is the day of the year. | 1436 | %j is the day of the year. |
| 1436 | 1437 | ||
| 1437 | %H is the hour on a 24-hour clock, %I is on a 12-hour clock, %k is like %H | 1438 | %H is the hour on a 24-hour clock, %I is on a 12-hour clock, %k is like %H |