2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-03-01 13:17:19 +08:00
glibc/time
TAMUKI Shoichi 32f600a272 strftime: Pass the additional flags from "%EY" to "%Ey" [BZ ]
The full representation of the alternative calendar year (%EY)
typically includes an internal use of "%Ey".  As a GNU extension,
apply any flags on "%EY" (e.g. "%_EY", "%-EY") to the internal "%Ey",
allowing users of "%EY" to control how the year is padded.

Reviewed-by: Rafal Luzynski <digitalfreak@lingonborough.com>
Reviewed-by: Zack Weinberg <zackw@panix.com>

ChangeLog:

	[BZ ]
	* manual/time.texi (strftime): Document "%EC" and "%EY".
	* time/Makefile (tests): Add tst-strftime2.
	(LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
	* time/strftime_l.c (__strftime_internal): Add argument yr_spec to
	override padding for "%Ey".
	If an optional flag ('_' or '-') is specified to "%EY", interpret the
	"%Ey" in the subformat as if decorated with that flag.
	* time/tst-strftime2.c: New file.
2019-01-24 23:04:12 +09:00
..
bits/types
sys
adjtime.c
alt_digit.c
asctime.c
bug-asctime_r.c
bug-asctime.c
bug-getdate1.c
bug-mktime1.c
bug-mktime4.c
clock.c
clocktest.c
ctime_r.c
ctime.c
datemsk
Depend
difftime.c
dysize.c
era.c
ftime.c
getdate.c
getitimer.c
gettimeofday.c
gmtime.c
lc-time-cleanup.c
localtime.c
Makefile strftime: Pass the additional flags from "%EY" to "%Ey" [BZ ] 2019-01-24 23:04:12 +09:00
mktime-internal.h
mktime.c
offtime.c
setitimer.c
settimeofday.c
stime.c
strftime_l.c strftime: Pass the additional flags from "%EY" to "%Ey" [BZ ] 2019-01-24 23:04:12 +09:00
strftime.c
strptime_l.c Fix a few typos in comments 2019-01-12 13:44:51 +00:00
strptime.c
test_time.c
time.c
time.h
timegm.c
timespec_get.c
tst_wcsftime.c
tst-ftime_l.c
tst-ftime.c
tst-getdate.c
tst-mktime2.c
tst-mktime3.c
tst-mktime.c
tst-posixtz.c
tst-strftime2.c strftime: Pass the additional flags from "%EY" to "%Ey" [BZ ] 2019-01-24 23:04:12 +09:00
tst-strftime.c
tst-strptime2.c
tst-strptime3.c
tst-strptime-whitespace.c
tst-strptime.c
tst-tzname.c
tst-y2039.c
tzfile.c
tzset.c
Versions
wcsftime_l.c
wcsftime.c