bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

man page for GNU date


From: Holger Lubitz
Subject: man page for GNU date
Date: Mon, 12 Mar 2001 17:25:19 +0100

hi,

i think i found a mistake / omission in the documentation for GNU date:

i want to produce a unix time stamp (seconds since 01/01/1970) formatted
to 10 chars, padded with leading zeroes if needed.

according to the manpage, date +%10s should work ("By default, date pads
numeric  fields with zeroes.")

however, if I use that, date pads with space. printf-style explicit zero
padding (%010s) works, but is not documented in the manpage. (well,
strictly speaking not even the possibility to pad to 10 chars with "10"
is documented.)

the version of date is:

# date --version
date (GNU sh-utils) 2.0

the operating system is linux (debian and red hat - both have the same
version)

regards,
holger



reply via email to

[Prev in Thread] Current Thread [Next in Thread]