Remove convenience code copy of posixtime()

Replace a convenience copy of coreutils code with a simpler
implementation of the same function relying on libc.