Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2006 17:31:48 -0400
From:      James Bailie <jimmy@jamesbailie.com>
To:        Gary Kline <kline@tao.thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Epoch -> string convertion functions?
Message-ID:  <444AA0C4.6010407@jamesbailie.com>
In-Reply-To: <20060422210138.GA60313@thought.org>
References:  <20060422210138.GA60313@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jimmy@jamesbailie.com>
http://www.jamesbailie.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444AA0C4.6010407>