datetime: some epoch tests and cleanup