Does anyone know about a simple implementation of gmtime or ctime without taking into account the time zone, external dependencies and non-copyleft license (BSD / MIT / something protected by the company)? Preferably in C, but basically everything that gives me the algorithm in its minimal form will work.
I just need the seconds from "January 1, 1970 00:00:00", broken by year, day, month, hour, min, sec. And it's almost time to get home on Friday, so I feel a little lazy.
source share