Your message dated Sun, 13 Nov 2005 13:18:11 -0500
with message-id <[EMAIL PROTECTED]>
and subject line date add example for unix timestamps
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Aug 2005 15:40:59 +0000
>From [EMAIL PROTECTED] Sat Aug 06 08:40:59 2005
Return-path: <[EMAIL PROTECTED]>
Received: from fe-6c.inet.it [213.92.5.112] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1E1QnD-0001K2-00; Sat, 06 Aug 2005 08:40:59 -0700
Received: from 81-174-12-206.f5.ngi.it [::ffff:81.174.12.206] by fe-6c.inet.it 
via I-SMTP-5.2.3-520
        id ::ffff:81.174.12.206+tocFTS89Uqu; Sat, 06 Aug 2005 17:40:57 +0200
Received: from localhost.localdomain (mitac.casa [192.168.1.42])
        by eddie.casa (Postfix) with ESMTP id D97DFC6F;
        Sat,  6 Aug 2005 17:41:53 +0200 (CEST)
Received: from enrico by localhost.localdomain with local (Exim 4.52)
        id 1E1QnA-0001tb-RG; Sat, 06 Aug 2005 17:40:56 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Enrico Zini <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: date: add example on how to parse unix timestamps
X-Mailer: reportbug 3.15
Date: Sat, 06 Aug 2005 17:40:56 +0200
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

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

---------------------------------------
Received: (at 321635-done) by bugs.debian.org; 13 Nov 2005 18:18:17 +0000
>From [EMAIL PROTECTED] Sun Nov 13 10:18:17 2005
Return-path: <[EMAIL PROTECTED]>
Received: from vms046pub.verizon.net ([206.46.252.46])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EbMQj-0005Fs-A7
        for [EMAIL PROTECTED]; Sun, 13 Nov 2005 10:18:17 -0800
Received: from osgiliath.mathom.us ([70.108.64.202])
 by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep
 9 2005)) with ESMTPA id <[EMAIL PROTECTED]> for
 [EMAIL PROTECTED]; Sun, 13 Nov 2005 12:18:12 -0600 (CST)
Received: from localhost (localhost [127.0.0.1])
        by osgiliath.mathom.us (Postfix) with ESMTP id 802136031E0      for
 <[EMAIL PROTECTED]>; Sun, 13 Nov 2005 13:18:11 -0500 (EST)
Received: from osgiliath.mathom.us ([127.0.0.1])
        by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024)
        with LMTP id 20028-02 for <[EMAIL PROTECTED]>; Sun,
 13 Nov 2005 13:18:11 -0500 (EST)
Received: by osgiliath.mathom.us (Postfix, from userid 1000)
        id 5931760049B; Sun, 13 Nov 2005 13:18:11 -0500 (EST)
Date: Sun, 13 Nov 2005 13:18:11 -0500
From: Michael Stone <[EMAIL PROTECTED]>
Subject: date add example for unix timestamps
To: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; format=flowed
Content-disposition: inline
X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C  84 52 84 C5 EE DF 7C 88
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us
User-Agent: Mutt/1.5.11
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-0.2 required=4.0 tests=BAYES_40 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

There is quite a bit of language about unix times in the info docs. The
date command is complicated enough that you pretty much can't avoid
reading the full info about it; I don't see a practical way of adding
all the nifty features onto the manpage and still have it readable. 

FYI, date currently supports date -d '@1123341579' to avoid the date -d
'01/01/1970 1123341579 seconds GMT' construct.

Mike Stone


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to