diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-10-26 14:25:02 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-10-26 14:25:02 +0000 |
| commit | a35d568e066053dec2dd5496d4cb0de77f79cec2 (patch) | |
| tree | a7316af17c69d01408db591cfa12b171f9b20676 /lib/libc | |
| parent | 1efc95bb9fecf5c42b1509d2fb92911a1f612171 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/stdtime/strftime.3 | 8 | ||||
| -rw-r--r-- | lib/libc/stdtime/strftime.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3 index 317705e875ab..b5b9c368db1f 100644 --- a/lib/libc/stdtime/strftime.3 +++ b/lib/libc/stdtime/strftime.3 @@ -98,11 +98,11 @@ is replaced by (year / 100) as decimal number; single digits are preceded by a zero. .It Cm %c is replaced by national representation of time and date. -The format is similar with produced by +The format is similar to that produced by .Xr asctime 3 -and should be -equivalent to "%a %Ef %T %Y" in fields order and sizes, it -implies the +and is +equivalent to "%a %Ef %T %Y". +It also implies the "3+1+6+1+8+1+4" format of output. .It Cm \&%D is equivalent to diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 6404d9c4f26f..40e015549223 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -120,7 +120,8 @@ label: "%02d", pt, ptlim); continue; case 'c': - pt = _fmt(Locale->c_fmt, t, pt, ptlim); + /* NOTE: c_fmt is intentionally ignored */ + pt = _fmt("%a %Ef %T %Y", t, pt, ptlim); continue; case 'D': pt = _fmt("%m/%d/%y", t, pt, ptlim); |
