Simple time structure to seconds/seconds to time structure source code . This code is from 1992 and needs converted to modern standards and needs far more validation before it can be used in mission critical applications.