[Python-Dev] datetime nanosecond support (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Wed Jul 25 13:48:53 CEST 2012
- Previous message: [Python-Dev] datetime nanosecond support
- Next message: [Python-Dev] datetime nanosecond support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 25 Jul 2012 11:24:14 +0200 Christian Heimes <lists at cheimes.de> wrote:
Am 25.07.2012 03:46, schrieb Guido van Rossum: > First you will have to show how you'd have to code this without > nanosecond precision in datetime and how tedious that is. (I expect > that representing the timestamp as a long integer expressing a posix > timestamp times a billion would be very reasonable.)
I'd vote for two separate numbers, the first similar to JDN (Julian Day Number [1]), the second for nanoseconds per day. 3600 * 1000000 fit nicely into an unsigned 32bit int.
But 24 * 3600 * 1e9 doesn't. Perhaps I didn't understand your proposal.
Regards
Antoine.
-- Software development and contracting: http://pro.pitrou.net
- Previous message: [Python-Dev] datetime nanosecond support
- Next message: [Python-Dev] datetime nanosecond support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]