What mathematical algorithm would I use to convert seconds since 1/1/1970 into a usable date/time format (time can be left off)? This includes leap years with extra days and any other additions.
I'm a novice at maths, so please try to keep it in layman's terms (or explain any terminology used).