Re: Unix date -> DATETIME
Posted in 1992
}From: uunet!cix.compulink.co.uk!shemminga (Stuart Hemming) }Subject: Re: Unix date -> DATETIME }Date: 25 Sep 92 11:38:17 GMT }X-Informix-List-Id: <news.1879> } }In a previous message I asked about converting unix dates to DATETIME }format without explaining what I was trying to do. } }Basically I have a table which has a field of type int. This value }comes from an Informix audit file and represents a unix date. What I }want to do is to sort and extract from this file based on the date }value. To be able to do this I really need to convert the int values }to datetime. Aaah. Then you need to look up strftime(3) and gmtime(3). If you haven't got strftime(3), then ask me for my version of it -- but it's in ANSI C. Yours, Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>