Menu

#1 Debug info in os.date()

open
nobody
None
5
2009-05-27
2009-05-27
Anonymous
No

The are several problems with os_date().

* It calls strftme() which prepends the date string with debug info ("teste:")
* strftime() uses a fixed format and does not used the format specifier sent to it
* os_date("*t") variant adds offsets not needed (for example the year field gets to be 3909 (2009+1900)

/rob

Discussion


Log in to post a comment.

MongoDB Logo MongoDB