From alan@beandorf.epilogue.com Tue May 16 15:03:52 1995 Received: from beandorf.epilogue.com (beandorf.epilogue.com [128.224.1.153]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA23085 for ; Tue, 16 May 1995 15:03:51 -0700 Received: (from root@localhost) by beandorf.epilogue.com (8.6.9/8.6.9) id SAA23270; Tue, 16 May 1995 18:03:45 -0400 Message-Id: <199505162203.SAA23270@beandorf.epilogue.com> Date: Tue, 16 May 1995 18:03:45 -0400 From: alan@epilogue.com Reply-To: alan@epilogue.com To: FreeBSD-gnats-submit@freebsd.org Subject: date "+%s" X-Send-Pr-Version: 3.2 >Number: 426 >Category: bin >Synopsis: Is 'date "+%s"' supported? >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 16 15:10:00 1995 >Closed-Date: Tue May 16 18:14:57 PDT 1995 >Last-Modified: >Originator: Alan Bawden >Release: FreeBSD 2.0-RELEASE i386 >Organization: >Environment: >Description: In 1.1.5.1, the command 'date "+%s"' prints '800661335' (for some number of seconds). In 2.0, the same command prints 's'. The man page for `date' refers me to the man page for `strftime'. The man page for `strftime' documents `%s' as an "extension". I haven't tried to call `strftime' directly. >How-To-Repeat: >Fix: Change the documentation, or change the code. >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: davidg State-Changed-When: Tue May 16 18:14:57 PDT 1995 State-Changed-Why: The bug was fixed in rev 1.2 of strftime.c: revision 1.2 date: 1995/03/01 23:08:40; author: joerg; state: Exp; lines: +22 -0 On snap 950210, format %s (print seconds from the epoch) is missing from the code in strftime.c . This affects both the library code and all the commands using it (e.g. date +%s). Note that %s is not required by ANSI, but we've already got it in 1.1.5.1. >Unformatted: