Epoch -> string convertion functions?

Gary Kline kline at tao.thought.org
Sat Apr 22 21:37:11 UTC 2006


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 at thought.org   www.thought.org     Public service Unix



More information about the freebsd-questions mailing list