North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: Unix Timestamp

  • From: Robert E. Seastrom
  • Date: Mon Oct 22 15:02:53 2001

Brandon Handeland <[email protected]> writes:

> Does anyone have a formula to convert a unix time stamp into the
> current time?  I know it is January 1st, 1970, in UTC format.  Just
> need some example code.
> 
> I'm trying to export some data from a HP/UX box into a MSSQL database and 
> need to use the timestamp feature of MSSQL.

The best code I've seen for this (and which knows about most variants
of the timestamp seen in the wild) was written by Steve Bellovin et
al, and can be found in the inn distribution in lib/parsedate.y

                                        ---Rob