Your message dated Sun, 23 Oct 2011 14:34:33 -0600
with message-id <[email protected]>
and subject line Re: Bug#321635: date: add example on how to parse unix
timestamps
has caused the Debian Bug report #321635,
regarding date: add example on how to parse unix timestamps
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
321635: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321635
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 5.2.1-2
Severity: wishlist
Tags: patch
Hello,
thanks for packaging coreutils.
It's always tricky with date to work with timestamps, especially to have
it parse them. An EXAMPLES section in the manpage could help; this is a
proposal:
--- date.1 2005-08-06 17:32:59.000000000 +0200
+++ date.1.enrico 2005-08-06 17:34:59.720187776 +0200
@@ -178,6 +178,14 @@
.IP
`-' (hyphen) do not pad the field
`_' (underscore) pad the field with spaces
+.SH EXAMPLES
+.nf
+ # Print the current date as unix timestamp
+ date +%s
+
+ # Parse a unix timestamp
+ date -d "01/01/1970 1123341579 seconds GMT"
+.fi
.SH AUTHOR
Written by David MacKenzie.
.SH "REPORTING BUGS"
Ciao,
Enrico
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Versions of packages coreutils depends on:
ii libacl1 2.2.29-1.0.1 Access control list shared library
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
coreutils recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Enrico Zini wrote:
> +.SH EXAMPLES
> +.nf
> + # Print the current date as unix timestamp
> + date +%s
> +
> + # Parse a unix timestamp
> + date -d "01/01/1970 1123341579 seconds GMT"
> +.fi
The upstream man page available in Debian now includes:
EXAMPLES
Convert seconds since the epoch (1970-01-01 UTC) to a date
$ date --date='@2147483647'
Show the time on the west coast of the US (use tzselect(1) to find TZ)
$ TZ='America/Los_Angeles' date
Show the local time for 9AM next Friday on the west coast of the US
$ date --date='TZ="America/Los_Angeles" 09:00 next Fri'
This feature was added in the recent coreutils 8.13 (commit 77d41d).
I believe that with the addition of these examples upstream that this
bug has been resolved and can be closed. I will do so with this
message.
Bob
signature.asc
Description: Digital signature
--- End Message ---