Unix Timestamp
Mike Wiacek
mikew at magpage.com
Tue Oct 23 00:53:08 UTC 2001
If you are using perl, localtime()
If you are using C, strftime() uses a timezone
struct provided by the c function localtime().
strftime takes printf style arguments, and builds
strings that represent the time for you.
mike
--------------------------------------------------------
UNIX was not designed to stop you from doing stupid
things, because that would also stop you from doing
clever things. -- Doug Gwyn
Mike Wiacek
Systems Administrator
Magpage Internet Services
800-250-2990 Ext 226
On Mon, 22 Oct 2001, Brandon Handeland wrote:
>
> 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.
>
> Thanks
>
> ----------------------------------------------------------------------
> Brandon Handeland Brandon at wyoming.com
> Senior Network Engineer
> wyoming.com NOC (307) 857-1092
> ----------------------------------------------------------------------
>
More information about the NANOG
mailing list