I need to store a time/date stamp (accurate to 1 second) in four bytes. So I am attenmpting to use a UNIX style time & date stamp. (I.e. the date stamp is x seconds from an epoch date). The problem is I'm struggling with an alogtithm to convert a time stamp from UNIX format to a humand readable format.
A google search revals lots of applications, programmes and applets to do this but no algortiths explaining how it is done.
Can ayone here offer a suitable algorithm?