[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for date docs - mention that %p (am/pm) is often blank
From: |
matthew arnison |
Subject: |
patch for date docs - mention that %p (am/pm) is often blank |
Date: |
Thu, 27 Jun 2002 13:32:32 +1000 (EST) |
some programmers are writing dodgy code because they don't realise that
12 hour am/pm format is not supported in many locales. so this patch is
part of an attempt to improve the docs. i am also contributing patches to
the strftime docs.
for more info, please see, especially the later messages:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=140891&repeatmerged=yes
cheers,
m.
diff -cr sh-utils-2.0.12/doc/coreutils.info
sh-utils-2.0.12.orig/doc/coreutils.info
*** sh-utils-2.0.12/doc/coreutils.info Thu Jun 27 13:25:22 2002
--- sh-utils-2.0.12.orig/doc/coreutils.info Mon Apr 29 16:57:41 2002
***************
*** 7818,7824 ****
nanoseconds (000000000...999999999)
`%p'
! locale's AM or PM (blank in many locales)
`%r'
time, 12-hour (hh:mm:ss [AP]M)
--- 7818,7824 ----
nanoseconds (000000000...999999999)
`%p'
! locale's AM or PM
`%r'
time, 12-hour (hh:mm:ss [AP]M)
diff -cr sh-utils-2.0.12/doc/coreutils.texi
sh-utils-2.0.12.orig/doc/coreutils.texi
*** sh-utils-2.0.12/doc/coreutils.texi Thu Jun 27 13:25:09 2002
--- sh-utils-2.0.12.orig/doc/coreutils.texi Mon Apr 29 07:55:31 2002
***************
*** 10006,10012 ****
@item %N
nanoseconds (address@hidden)
@item %p
! locale's AM or PM (blank in many locales)
@item %r
time, 12-hour (hh:mm:ss [AP]M)
@item %s
--- 10006,10012 ----
@item %N
nanoseconds (address@hidden)
@item %p
! locale's AM or PM
@item %r
time, 12-hour (hh:mm:ss [AP]M)
@item %s
diff -cr sh-utils-2.0.12/man/date.1 sh-utils-2.0.12.orig/man/date.1
*** sh-utils-2.0.12/man/date.1 Thu Jun 27 13:23:55 2002
--- sh-utils-2.0.12.orig/man/date.1 Sun Apr 28 19:31:07 2002
***************
*** 117,126 ****
nanoseconds (000000000..999999999)
.TP
%p
! locale's upper case AM or PM indicator (blank in many locales)
.TP
%P
! locale's lower case am or pm indicator (blank in many locales)
.TP
%r
time, 12-hour (hh:mm:ss [AP]M)
--- 117,126 ----
nanoseconds (000000000..999999999)
.TP
%p
! locale's upper case AM or PM indicator
.TP
%P
! locale's lower case am or pm indicator
.TP
%r
time, 12-hour (hh:mm:ss [AP]M)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- patch for date docs - mention that %p (am/pm) is often blank,
matthew arnison <=