From owner-freebsd-questions@FreeBSD.ORG Wed Sep 16 20:25:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 114A5106568B for ; Wed, 16 Sep 2009 20:25:17 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id C2E2A8FC20 for ; Wed, 16 Sep 2009 20:25:16 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id n8GKP4M6095537 for ; Wed, 16 Sep 2009 15:25:09 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200909162025.n8GKP4M6095537@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Date: Wed, 16 Sep 2009 15:25:04 -0500 From: Martin McCormick Subject: A question about the date Function X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2009 20:25:17 -0000 The man page on date has an example showing how to get an output showing the number of seconds since the Epoch. date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s" There is an envokation of date embedded in this command of date +%s I was curious as to what this command does so I tried the long form and then the short form with: date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s" >f0 date +%s >f1 I then compared the outputs of f0 and f1 and they are identical. What does the long form of this command give us that date +%s fails to do? Nothing is broken, here. I am just curious. Thank you. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group