summaryrefslogtreecommitdiff
path: root/lib/timeutils/timeutils.c
AgeCommit message (Collapse)Author
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-05-29various: Spelling fixesVille Skyttä
2017-03-31all: Use full path name when including mp-readline/timeutils/netutils.Damien George
This follows the pattern of how all other headers are now included, and makes it explicit where the header file comes from. This patch also removes -I options from Makefile's that specify the mp-readline/timeutils/ netutils directories, which are no longer needed.
2016-06-03lib/timeutils/timeutils: Fix pedantic warning in coverage build.Paul Sokolovsky
2016-06-02lib/timeutils/timeutils: timeutils_mktime may accept negative time values.Paul Sokolovsky
And will normalize them.
2016-04-27lib/timeutils/timeutils: Typo fix in comment.Paul Sokolovsky
2015-05-21lib: Fix some issues in timeutilsDave Hylands
In particular, dates prior to Mar 1, 2000 are screwed up. The easiest way to see this is to do: >>> import time >>> time.localtime(0) (2000, 1, 1, 0, 0, 0, 5, 1) >>> time.localtime(1) (2000, 1, 2, 233, 197, 197, 6, 2) With this patch, we instead get: >>> import time >>> time.localtime(1) (2000, 1, 1, 0, 0, 1, 5, 1) Doh - In C % is NOT a modulo operator, it's a remainder operator.
2015-05-13lib: Move time utility functions to common library.Josef Gajdusek