Clean up struct tm handling. Instead of calling gmtime/localtime
authorray <ray@openbsd.org>
Fri, 23 Jul 2010 09:11:10 +0000 (09:11 +0000)
committerray <ray@openbsd.org>
Fri, 23 Jul 2010 09:11:10 +0000 (09:11 +0000)
commit9a7aa69cdf267b75752748b6a0028e428cbc88fa
tree97bccd09430733d232649cf72e5c743de1e9dded
parente19eef18a3f49ffeb9df7f08554b65306685d3ed
Clean up struct tm handling. Instead of calling gmtime/localtime
and making copies (among other weird dances), use reentrant versions.

Not being able to tell the time is a fatal error, so die if that
happens.

Diff originally from nicm.

OK nicm xsa
usr.bin/cvs/date.y