This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Unsupported provider

classification
Title: PEP 410: Use decimal.Decimal type for timestamps
Type: Stage:
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: Alexander.Belopolsky, Arfrever, belopolsky, eric.smith, loewis, mark.dickinson, pitrou, skrah, vstinner
Priority: normal Keywords: patch

Created on 2012-01-26 21:00 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
time_decimal-18.patch vstinner, 2012-02-17 01:16 review
timestamp_datetime-2.patch vstinner, 2012-02-17 01:18
Messages (38)
msg152031 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-26 21:00
Attached patch adds an optional format argument to time.time(), time.clock(), time.wallclock(), time.clock_gettime() and time.clock_getres() to get the timestamp as a different format. By default, the float type is still used, but it will be possible to pass "format" to get the timestamp as a decimal.Decimal object.

Some advantages of using decimal.Decimal instead of float:
 - no loss of precision during conversion from base 2 to base 10 (converting the float to a string)
 - the resolution of the clock is stored in the Decimal object
 - for big number, Decimal doesn't loose precision

Using Decimal is also motivated by the fact than Python 3.3 has now access to clock having a resolution of 1 nanosecond: clock_gettime(CLOCK_REALTIME). Well, it doesn't mean that the clock is accurate, but Python should not loose precision just because it uses floatting point instead of integers.

About the API: I chose to add a string argument to allow maybe later to support user defined formats, or at least add new builtin formats. For example, someone proposed 128 bits float in the issue #11457.

--

The internal format is:

typedef struct {
    time_t seconds;
    /* floatpart can be zero */
    size_t floatpart;
    /* divisor cannot be zero */
    size_t divisor;
    /* log10 of the clock resoltion, the real resolution is 10^resolution,
       resolution is in range [-9; 0] */
    int resolution;
} _PyTime_t;

I don't know if size_t is big enough to store any "floatpart" value: time.clock() uses a LARGE_INTEGER internally. I tested my patch on Linux 32 and 64 bits, but not yet on Windows.

The internal function encoding a timestamp to Decimal caches the resolution objects (10^resolution, common clock resolutions: 10^-6, 10^-9) in a dict, and a Context object.

I computed that 22 decimal digits should be enough to compute a timestamp of 10,000 years. Extract of my patch:

"Use 12 decimal digits to store 10,000 years in seconds + 9 decimal digits for the floating part in nanoseconds + 1 decimal digit to round correctly"

>>> str(int(3600*24*365.25*10000))
'315576000000'
>>> len(str(int(3600*24*365.25*10000)))
12

--

See also the issue #11457 which is linked to this topic, but not exactly the same because it concerns a low level function (os.stat()).
msg152032 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-26 21:04
Some examples of the API:

$ ./python 
Python 3.3.0a0 (default:52f68c95e025+, Jan 26 2012, 21:54:31) 
>>> import time
>>> time.time()
1327611705.948446
>>> time.time('decimal')
Decimal('1327611708.988419')
>>> t1=time.time('decimal'); t2=time.time('decimal'); t2-t1
Decimal('0.000550')
>>> t1=time.time('float'); t2=time.time('float'); t2-t1
5.9604644775390625e-06
>>> time.clock_gettime(time.CLOCK_MONOTONIC, 'decimal')
Decimal('1211833.389740312')
>>> time.clock_getres(time.CLOCK_MONOTONIC, 'decimal')
Decimal('1E-9')
>>> time.clock()
0.12
>>> time.clock('decimal')
Decimal('0.120000')
msg152035 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-26 21:50
Windows code (win32_clock) was wrong in time_decimal-2.patch: it is fixed in patch version 3.

Some tests on Windows made me realize that time.time() has a resolution of 1 millisecond (10^-3) and not of a microsecond (10^-6) on Windows! It is time to use GetSystemTimeAsFileTime! => see issue #13845.
msg152129 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2012-01-27 22:07
Can we pick an API for this functionality that does not follow the worst of design anti-patterns?  Constant arguments, varying return type, hidden import, and the list can go on.

What is wrong with simply creating a new module, say "hirestime" with functions called decimal_time(), float_time(), datetime_time() and whatever else you would like.  Let's keep the good old 'time' module simple.
msg152131 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-01-27 22:17
Well, creating a separate module is an anti-pattern in itself. calendar vs. time vs. datetime, anyone?
I would instead propose separate functions: decimal_time, decimal_clock... or, if you prefer, time_decimal and so on.
msg152133 - (view) Author: Alexander Belopolsky (Alexander.Belopolsky) Date: 2012-01-27 22:25
On Fri, Jan 27, 2012 at 5:17 PM, Antoine Pitrou <report@bugs.python.org> wrote:
> Well, creating a separate module is an anti-pattern in itself. calendar vs. time vs. datetime, anyone?

Are you serious? Since the invention of structural programming,
creating a separate module for distinct functionality has been one of
the most powerful design techniques.  If I recall correctly, most of
the original GoF patterns were about separating functionality into a
separate module or a separate class.  The calendar module is indeed a
historical odd-ball, but what is wrong with time and datetime?
msg152134 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-01-27 22:31
> Are you serious? Since the invention of structural programming,
> creating a separate module for distinct functionality has been one of
> the most powerful design techniques.

Yes, I'm serious, and I don't see what structural programming or design
patterns have to do with it.

And we're not even talking about "distinct functionality", we're talking
about the exact same functionality, except that the return type has
slightly different implementation characteristics. Doing a module split
is foolish.
msg152290 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-29 23:42
> Constant arguments

What do you call a constant argument? "float" and "decimal"? You would prefer a constant like time.FLOAT_FORMAT? Or maybe a boolean (decimal=True)?

I chose a string because my first idea was to add a registry to support other format, maybe user defined formats, like the one used by Unicode codecs.

If we choose to not support other formats, but only float and decimal, a simpler API can be designed.

Another possible format would be "tuple": (intpart: int, floatpart: int, divisor: int), a low level type used to "implement" other user-defined types. Using such tuple, you have all information (clock value and clock resolution) without losing information.

> varying return type

I agree that it is something uncommon in Python. I know os.listdir(bytes)->bytes and os.listdir(str)->str. I suppose that there are other functions with a different result type depending on the input.

I am not attached to my API, it was just a proposition.

> hidden import

Ah? I wouldn't call it hidden because I don't see how a function can return a decimal.Decimal object without importing it. If you consider that it is surprising (unexepected), it can be documented.

> and the list can go on.

What else?

> What is wrong with simply creating a new module, say "hirestime"
> with functions called decimal_time(), float_time(), datetime_time()
> and whatever else you would like.

Hum, adding a new module would need to duplicate code. The idea of adding an argument is also to simplify the implementation: most code is shared. We can still share a lot of code if we choose to add a new function in th time module instead of adding a new argument to existing functions.

> Let's keep the good old 'time' module simple.

What is complex in my patch? It doesn't break backward compatibility and should have a low (or null) overhead in runtime speed if the format is not set.

--

I notified something surprising in my patch: "t1=time.time("decimal"); t2=time.time("decimal"); t2-t1" returns something bigger than 20 ms... That's because the "import decimal" is done after reading the first clock value, and not before.
msg152303 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-30 02:42
Patch version 4, minor update:
 - remove the resolution field of _PyTime_t and remove int_log10(): use 1/divisior as the resolution to support divisor different than a power of 10 (e.g. the cpu frequency on Windows)
 - inline and remove _PyTime_FromTimespec()
msg152304 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-30 02:47
> Another possible format would be "tuple"

Or, I forgot an obvious format: "datetime"!
msg152353 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-30 22:27
Version 5:
 - add "datetime" and "timespec" formats: datetime.datetime object and  (sec: int, nsec: int)
 - add timestamp optional format to os.stat(), os.lstat(), os.fstat(), os.fstatat()
 - support passing the timestamp format as a keyword: time.time(format="decimal")

I am not really conviced by the usefulness of "timespec" format, but it was just an example for #11457.

The "datetime" format is surprising for time.clock() and time.wallclock(), these timestamps use an arbitrary start. I suppose that time.clock(format="datetime") and time.wallclock(format="datetime") should raise a ValueError.
msg152356 - (view) Author: Alexander Belopolsky (Alexander.Belopolsky) Date: 2012-01-30 22:49
On Sun, Jan 29, 2012 at 6:42 PM, STINNER Victor <report@bugs.python.org> wrote:
..
> What do you call a constant argument? "float" and "decimal"?
> You would prefer a constant like time.FLOAT_FORMAT?
> Or maybe a boolean (decimal=True)?

Yes. This was explained on python-dev not so long ago:

http://mail.python.org/pipermail/python-dev/2010-July/102100.html

The problem is not with the type of the argument (although boolean or
enum argument type is often a symptom pointing to the issue.)  The
issue is that an argument that is never given a variable value at the
call site is usually a sign of an awkward API.  For example, what
would you prefer:

math('log', x)

or

math.log(x)

?

>
> I chose a string because my first idea was to add a registry to support other format,
> maybe user defined formats, like the one used by Unicode codecs.

With all my respect for MAL, codecs are not my favorite part of the
python library.

One possibility (still awkward IMO) would be to use the return type as
the format specifier.  This would at least require the user to import
datetime or decimal before calling time() with corresponding format.
Few users would tolerate I/O delay when they want to get time with
nanosecond precision.
msg152358 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-30 23:15
> One possibility (still awkward IMO) would be to use the return type as
> the format specifier.

Yeah, I already thaught to this idea. The API would be:
 - time.time(format=float)
 - time.time(format=decimal.Decimal)
 - time.time(format=datetime.datetime)
 - time.time(format=?) # for timespec, but I don't think that we need timespec in Python which is a object oriented language, we can use better than low level strutures
 - os.stat(path, format=decimal.Decimal)
 - etc.

I have to write a function checking that obj is decimal.Decimal or datetime.datetime without importing the module. I suppose that it is possible by checking obj type (it must be a class) and then obj.__module__.

> This would at least require the user to import
> datetime or decimal before calling time() with corresponding
> format.

Another possibility is what I proposed before in the issue #11457: take a callback argument.
http://bugs.python.org/issue11457#msg143738

The callback prototype would be:

def myformat(seconds, floatpart, divisor):
    return ...

Each module can implements its own converter and time can provide some builtin converts (because I don't want to add something related to time in the decimal module for example).

But I don't really like this idea because it requires to decide the API of the low level structure of a timestamp (which may change later), and it doesn't really solve the issue of "import decimal" if the converter is in the time module.
msg152359 - (view) Author: Alexander Belopolsky (Alexander.Belopolsky) Date: 2012-01-30 23:24
On Mon, Jan 30, 2012 at 6:15 PM, STINNER Victor <report@bugs.python.org> wrote:
> Another possibility is what I proposed before in the issue #11457: take a callback argument.
> http://bugs.python.org/issue11457#msg143738

I think you are over-engineering a complicated solution to a simple
problem.  If you want to add functionality to time module, add a
function with a new name that would mimic appropriate POSIX API and
return a (named) tuple of integers where C function would populate a
struct.  If you write a new high resolution time module - import
decimal at the top of the module and make all your clocks return
seconds as Decimal objects.
msg152374 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-01-31 12:00
Patch version 6:

 - timestamp format is now a type instead of a string, e.g. time.time(int)
 - add int and datetime.timedelta formats, remove timespec format
 - complete the documentation
 - fix integer overflows, convert correctly time_t to PyLong

There are now 5 timestamp formats:

 - int
 - float
 - decimal.Decimal
 - datetime.datetime
 - datetime.timedelta

I consider the patch as ready to be commited, or at least ready for a
review ;-) There is no more FIXME or known limitation. Well, now the
most important part is to decide the API and the list of timestamp
formats.

The patch should be tested on Linux, FreeBSD and Windows, 32 and 64
bits to check assertions on type sizes:

assert(sizeof(clock_t) <= sizeof(size_t));
assert(sizeof(LONGLONG) <= sizeof(size_t));
assert(sizeof(time_t) <= sizeof(PY_LONG_LONG));
msg152417 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-01 00:01
Hum, it looks like _PyTime_AsDecimal() is wrong is ts->divisor is not a power of 10. The exponent must be computed with Context(1), not Context(26). Something simpler can maybe be used, I don't know even the decimal API.
msg152456 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-02 13:04
Patch version 7:
 - Drop datetime.datetime and datetime.timedelta types
 - Conversion to decimal now uses a context with 1 digit to compute
exponent=1/denominator to avoid issue on t.quantize(exponent)
 - Rename the "format" argument to "timestamp" in the time module
 - Rename _PyTime_AsFormat() to _PyTime_Convert()
 - Update the doc
msg152489 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-03 01:03
As expected, size_t is too small on Windows 32 bits.

Patch version 8: _PyTime_t uses Py_LONG_LONG if available, instead of size_t, for numerator and denominator.
msg152490 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-03 01:05
(Resend patch version 8 without the git diff format to support review on Rietveld.)
msg152491 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-03 01:09
Oops, win32_pyclock() was disabled (for tests) in patch version 8. Fixed in version 9.
msg152502 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-03 12:16
Patch version 10:
 - deprecate os.stat_float_times()
 - fix docstring of os.*stat() functions
 - add a reference to the PEP
 - add a comment to indicate that _PyTime_gettimeofday() ignores
integer overflow
msg152571 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-04 00:24
Even if some people dislike the idea of adding datetime.datetime type, here is a patch implementing it (it requires time_decimal-XX.patch). The patch is at least a proof-of-concept that it is possible to change the internal structure without touching the public API.

Example:

$ ./python
>>> import datetime, os, time
>>> open("x", "wb").close(); print(datetime.datetime.now())
2012-02-04 01:17:27.593834                                                                                                                  
>>> print(os.stat("x", timestamp=datetime.datetime).st_ctime)                                                                        
2012-02-04 00:17:27.592284+00:00                                                                                                            
>>> print(time.time(timestamp=datetime.datetime))                                                                                           
2012-02-04 00:18:21.329012+00:00
>>> time.clock(timestamp=datetime.datetime)
ValueError: clock has an unspecified starting point
>>> print(time.clock_gettime(time.CLOCK_REALTIME, timestamp=datetime.datetime))
2012-02-04 00:21:37.815663+00:00
>>> print(time.clock_gettime(time.CLOCK_MONOTONIC, timestamp=datetime.datetime))
ValueError: clock has an unspecified starting point

As you can see: conversion to datetime.datetime fails with ValueError('clock has an unspecified starting point') for some functions, sometimes depending on the function argument (clock_gettime).
msg152795 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-06 22:50
Hum, time_decimal-10.patch contains a debug message:

+            print("la")
msg152796 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-06 22:59
-    return posix_do_stat(self, args, "O&:stat", STAT, "U:stat", win32_stat_w);
+    return posix_do_stat(self, args, kw, "O&|O:stat", STAT, "U:stat", win32_stat_w);

The second format string should also be updated to "U|O:stat".
msg152818 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-07 23:27
Updated patch (version 11).
msg152823 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-08 01:05
os.stat().st_birthtime should depend on the timestamp argument.

A timestamp optional argument should also be added to os.wait3() and os.wait4() for the utime and stime fields of the rusage tuple.
msg152826 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-08 01:20
I created the issue #13964 to cleanup the API of os.*utime*() functions.
msg152835 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-08 03:18
fill_time() should use denominator=1 if the OS doesn't support timestamp with a subsecond resolution. See also issue #13964.
msg152838 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-08 03:57
Patch version 12:

 * os.stat().st_birthtime uses also the timestamp argument
 * Add an optional timestamp argument to os.wait3() and os.wait4(): change type of utime and stime attributes of the resource usage
 * os.stat() changes the timestamp resolution depending if nanosecond resolution is available or not

I realized that resource.getrusage() should also be modified. I will maybe do that in another version of the patch, or maybe change resource usage in another patch.
msg152916 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-08 23:52
Patch version 13:
 - os.utime(path) sets the access and modification time using the currenet time with a subsecond resolution (e.g. microsecond resolution on Linux)
 - os.*utime*() functions uses _PyTime_t type and functions
 - add many functions to manipulate timeval, timespec and FILETIME types with _PyTime_t, add _PyTime_SetDenominator() function for that
 - coding style: follow PEP 7 rules for braces

So more functions (including os.*utime*()) "accept" Decimal, but using an implicit conversion to float.
msg153007 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-10 01:48
Patch version 14:

 - rewrite the conversion from float to _PyTime_t: use base 2 with high precision and then simplify the fraction. The conversion from decimal.Decimal uses base 10 and do also simplify the fraction.
 - write tests on functions converting _PyTime_t using _testcapi
 - add timestamp argument to signal.getitimer(), signal.setitimer(), resource.getrusage()
 - signal.sigtimedwait() uses _PyTime_t and now expects a number and no more a tuple (function added to Python 3.3, so no backward compatibility issue). See also the issue #13964
 - time.sleep() uses _PyTime_t. See also the issue #13981 (use nanosleep())
 - datetime.datetime.now() and datetime.datetime.utcnow() uses _PyTime_t
 - catch integer overflow on _PyTime_AsTimeval(), _PyTime_AsTimespec() and more

This patch gives you an overview of the whole PEP 410 implementation, but it should not be applied in one shot. It would be better to commit it step by step:

 - add _PyTime_t API
 - use _PyTime_t for the time module
 - use _PyTime_t for the os module
 - use _PyTime_t for the more modules
 - etc.

We can start by adding the API and use it in the time module, and then rediscuss changes on other modules.
msg153197 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-12 11:11
Patch version 15:
 - round "correctly"
 - datetime.date.fromtimestamp() and datetime.datetime.fromtimestamp() reuses _PyTime_t API to support decimal.Decimal without loss of precision
 - add more tests
msg153199 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-12 11:23
(Oops, I attached the wrong patch.)
msg153201 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-12 11:37
New try, set the version to 16 to avoid the confusion.

test_time is failing on Windows.
msg153240 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-13 00:23
Here is the version 17 of my patch. This version is mostly complete and so can be reviewed. Summary of the patch:

 - Add a _PyTime_t structure to store any timestamp in any resolution, universal structure used by all functions manipulating timestamps instead of C double to avoid loss of precision
 - Add many functions to create timestamp (set _PyTime_t structure) or to get a timestamp in a specific format (int, float, Decimal, timeval or timespec structure, in milliseconds, etc.)
 - Round to nearest with ties going away from zero (rounding method called "ROUND_HALF_UP" in Decimal)
 - Functions creating timestamps get a new optional timestamp argument to specify the requested return type, e.g. time.time(timestamp=int) returns an int
 - Functions getting timestamps argument now also support decimal.Decimal
 - Raise an OverflowError instead of a ValueError if a timestamp cannot be stored in a C time_t type

The patch is huge, but as I wrote before, I will split it into smaller parts:

 - Add _PyTime_t API
 - Use the new API in the time module
 - Use the new API in the os module
 - etc.

Changes in the version 17 of my patch:

 - tested on Linux 32/64 bits, OpenBSD 64 bits, FreeBSD 64 bits, Windows 64 bits
 - fix portability issues (for various time_t and C long sizes)
msg153520 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-17 01:16
Patch version 18:
 - Fix a loss of precision in _PyTime_SetDenominator()
 - Add more tests on integer overflow

I also updated the patch adding datetime.datetime support because some people are interested by the type, even I don't think that it is interesting to add it. datetime.datetime is only usable with time.time(), os.*stat() and time.clock_gettime(), whereas it is incompatible with all other functions.
msg153539 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-02-17 12:13
TODO:
 - the conversion from Decimal to _PyTime_t does still use a cast to
float and so lose precision
 - the PEP must be accepted :-)
msg154801 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-03-02 21:38
The PEP has been rejected, so I close the issue.
History
Date User Action Args
2022-04-11 14:57:26adminsetgithub: 58090
2012-03-02 21:38:35vstinnersetstatus: open -> closed
resolution: wont fix
messages: + msg154801
2012-02-17 12:13:49vstinnersetmessages: + msg153539
2012-02-17 01:18:37vstinnersetfiles: - timestamp_datetime.patch
2012-02-17 01:18:35vstinnersetfiles: - time_decimal-17.patch
2012-02-17 01:18:22vstinnersetfiles: + timestamp_datetime-2.patch
2012-02-17 01:17:27vstinnersetfiles: + time_decimal-18.patch

messages: + msg153520
2012-02-13 00:24:56vstinnersetfiles: - time_decimal-16.patch
2012-02-13 00:24:55vstinnersetfiles: - time_decimal-14.patch
2012-02-13 00:23:12vstinnersetfiles: + time_decimal-17.patch

messages: + msg153240
2012-02-12 11:37:58vstinnersetfiles: + time_decimal-16.patch

messages: + msg153201
2012-02-12 11:25:06vstinnersetfiles: - time_decimal-15.patch
2012-02-12 11:23:04vstinnersetfiles: + time_decimal-15.patch

messages: + msg153199
2012-02-12 11:21:42vstinnersetfiles: - time_decimal-15.patch
2012-02-12 11:11:38vstinnersetfiles: + time_decimal-15.patch

messages: + msg153197
2012-02-10 01:49:11vstinnersetfiles: - time_decimal-13.patch
2012-02-10 01:48:23vstinnersetfiles: + time_decimal-14.patch

messages: + msg153007
2012-02-09 23:00:37vstinnerlinkissue13981 dependencies
2012-02-08 23:53:35vstinnersetfiles: - time_decimal-12.patch
2012-02-08 23:53:34vstinnersetfiles: - time_decimal-11.patch
2012-02-08 23:52:58vstinnersetfiles: + time_decimal-13.patch

messages: + msg152916
2012-02-08 03:57:38vstinnersetfiles: + time_decimal-12.patch

messages: + msg152838
2012-02-08 03:18:32vstinnersetmessages: + msg152835
2012-02-08 01:20:20vstinnersetmessages: + msg152826
2012-02-08 01:05:10vstinnersetmessages: + msg152823
2012-02-07 23:27:22vstinnersetfiles: - time_decimal-10.patch
2012-02-07 23:27:21vstinnersetfiles: - time_decimal-9.patch
2012-02-07 23:27:12vstinnersetfiles: + time_decimal-11.patch

messages: + msg152818
2012-02-06 22:59:17vstinnersetmessages: + msg152796
2012-02-06 22:50:07vstinnersetmessages: + msg152795
2012-02-04 00:24:08vstinnersetfiles: + timestamp_datetime.patch

messages: + msg152571
2012-02-03 12:16:44vstinnersetfiles: + time_decimal-10.patch

messages: + msg152502
2012-02-03 01:09:04vstinnersetfiles: + time_decimal-9.patch

messages: + msg152491
2012-02-03 01:08:22vstinnersetfiles: - time_decimal-8.patch
2012-02-03 01:05:37vstinnersetfiles: + time_decimal-8.patch

messages: + msg152490
2012-02-03 01:04:59vstinnersetfiles: - time_decimal-8.patch
2012-02-03 01:04:19vstinnersetfiles: - time_decimal-7.patch
2012-02-03 01:04:17vstinnersetfiles: - time_decimal-6.patch
2012-02-03 01:04:16vstinnersetfiles: - time_decimal-5.patch
2012-02-03 01:03:59vstinnersetfiles: + time_decimal-8.patch

messages: + msg152489
title: Add format argument for time.time(), time.clock(), ... to get a timestamp as a Decimal object -> PEP 410: Use decimal.Decimal type for timestamps
2012-02-02 13:05:00vstinnersetfiles: + time_decimal-7.patch

messages: + msg152456
2012-02-01 00:01:31vstinnersetmessages: + msg152417
2012-01-31 12:00:25vstinnersetfiles: + time_decimal-6.patch

messages: + msg152374
2012-01-30 23:24:25Alexander.Belopolskysetmessages: + msg152359
2012-01-30 23:15:29vstinnersetmessages: + msg152358
2012-01-30 22:49:30Alexander.Belopolskysetmessages: + msg152356
2012-01-30 22:34:46vstinnersetfiles: - time_decimal-4.patch
2012-01-30 22:27:44vstinnersetfiles: + time_decimal-5.patch

messages: + msg152353
2012-01-30 02:54:02vstinnersetnosy: + skrah
2012-01-30 02:49:24vstinnersetassignee: Arfrever ->
2012-01-30 02:47:56vstinnersetmessages: + msg152304
2012-01-30 02:43:32vstinnersetfiles: - time_decimal-3.patch
2012-01-30 02:43:31vstinnersetfiles: - time_decimal-2.patch
2012-01-30 02:43:23vstinnersetfiles: + time_decimal-4.patch
assignee: Arfrever
2012-01-30 02:42:49vstinnersetmessages: + msg152303
2012-01-29 23:42:14vstinnersetmessages: + msg152290
2012-01-27 23:15:10eric.smithsetnosy: + eric.smith
2012-01-27 22:33:31belopolskysetnosy: + mark.dickinson
2012-01-27 22:31:57pitrousetmessages: + msg152134
2012-01-27 22:25:22Alexander.Belopolskysetnosy: + Alexander.Belopolsky
messages: + msg152133
2012-01-27 22:17:06pitrousetnosy: + pitrou
messages: + msg152131
2012-01-27 22:07:19belopolskysetmessages: + msg152129
2012-01-27 21:56:16Arfreversetnosy: + Arfrever
2012-01-26 21:50:13vstinnersetfiles: + time_decimal-3.patch

messages: + msg152035
2012-01-26 21:04:26vstinnersetmessages: + msg152032
2012-01-26 21:00:37vstinnercreate