but it generally takes a lot of multiplications and divisions to go between the "seconds" and the current month/day/year/etc.
On the other hand, that code was written by people that knew what they were doing.
OP might, too, but my impression was that if he/she did, he/she wouldn't have had to ask.