From owner-freebsd-questions@FreeBSD.ORG Sat Apr 22 21:37:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BF3F16A400 for ; Sat, 22 Apr 2006 21:37:11 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id A96A143D46 for ; Sat, 22 Apr 2006 21:37:10 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.4/8.13.1) with ESMTP id k3MLb3WF060517; Sat, 22 Apr 2006 14:37:08 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.4/8.13.1/Submit) id k3MLb2VY060516; Sat, 22 Apr 2006 14:37:02 -0700 (PDT) (envelope-from kline) Date: Sat, 22 Apr 2006 14:37:02 -0700 From: Gary Kline To: James Bailie Message-ID: <20060422213702.GA60495@thought.org> References: <20060422210138.GA60313@thought.org> <444AA0C4.6010407@jamesbailie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <444AA0C4.6010407@jamesbailie.com> User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19+ years of service to the Unix community Cc: Gary Kline , FreeBSD Mailing List Subject: Re: Epoch -> string convertion functions? 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: Sat, 22 Apr 2006 21:37:11 -0000 On Sat, Apr 22, 2006 at 05:31:48PM -0400, James Bailie wrote: > Gary Kline wrote: > > > In looking over my old C code I've come across lots of > > unexpected functions, but nothing that, say, given the long > > int that represents the Epoch can turn it into something > > useful. Anybody know of any "off-the-shelf" conversion > > programs that can turn time integers into YYMMDDHHMMSS type > > strings? > > You should be able to write one yourself fairly quickly and > easily with the help of strftime() and localtime(). See the man > pages of these functions. > Sure. But if it's already described in some obscure man2 or man3 doc, I'd go for that. Evidently not. tx much. gary -- Gary Kline kline@thought.org www.thought.org Public service Unix