From owner-freebsd-questions@FreeBSD.ORG Sat Apr 22 21:31:50 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 8711B16A404 for ; Sat, 22 Apr 2006 21:31:50 +0000 (UTC) (envelope-from jimmy@jamesbailie.com) Received: from smtp102.rog.mail.re2.yahoo.com (smtp102.rog.mail.re2.yahoo.com [206.190.36.80]) by mx1.FreeBSD.org (Postfix) with SMTP id 9CD2B43D55 for ; Sat, 22 Apr 2006 21:31:49 +0000 (GMT) (envelope-from jimmy@jamesbailie.com) Received: (qmail 79486 invoked from network); 22 Apr 2006 21:31:49 -0000 Received: from unknown (HELO ?70.29.126.205?) (jazzturk@rogers.com@70.29.126.205 with plain) by smtp102.rog.mail.re2.yahoo.com with SMTP; 22 Apr 2006 21:31:48 -0000 Message-ID: <444AA0C4.6010407@jamesbailie.com> Date: Sat, 22 Apr 2006 17:31:48 -0400 From: James Bailie User-Agent: Thunderbird 1.5 (X11/20060417) MIME-Version: 1.0 To: Gary Kline References: <20060422210138.GA60313@thought.org> In-Reply-To: <20060422210138.GA60313@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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:31:50 -0000 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. -- James Bailie http://www.jamesbailie.com