circuitpython/ports
Damien George 8f20cdc353 all: Rename absolute time-based functions to include "epoch".
For time-based functions that work with absolute time there is the need for
an Epoch, to set the zero-point at which the absolute time starts counting.
Such functions include time.time() and filesystem stat return values.  And
different ports may use a different Epoch.

To make it clearer what functions use the Epoch (whatever it may be), and
make the ports more consistent with their use of the Epoch, this commit
renames all Epoch related functions to include the word "epoch" in their
name (and remove references to "2000").

Along with this rename, the following things have changed:

- mp_hal_time_ns() is now specified to return the number of nanoseconds
  since the Epoch, rather than since 1970 (but since this is an internal
  function it doesn't change anything for the user).

- littlefs timestamps on the esp8266 have been fixed (they were previously
  off by 30 years in nanoseconds).

Otherwise, there is no functional change made by this commit.

Signed-off-by: Damien George <damien@micropython.org>
2020-09-18 17:20:34 +10:00
..
bare-arm ports: Disable MICROPY_PY_ASSIGN_EXPR in bare-arm and minimal ports. 2020-06-16 22:06:21 +10:00
cc3200 ports: Add utime.gmtime() function. 2020-09-18 16:25:36 +10:00
esp32 all: Rename absolute time-based functions to include "epoch". 2020-09-18 17:20:34 +10:00
esp8266 all: Rename absolute time-based functions to include "epoch". 2020-09-18 17:20:34 +10:00
javascript all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
mimxrt mimxrt/boards: Add MIMXRT1064_EVK board. 2020-09-09 00:06:33 +10:00
minimal ports: Disable MICROPY_PY_ASSIGN_EXPR in bare-arm and minimal ports. 2020-06-16 22:06:21 +10:00
nrf nrf: Remove unnecessary includes of mpconfigport.h and its header guard. 2020-09-09 00:13:34 +10:00
pic16bit all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
powerpc powerpc/uart: Choose which UART to use at build time, not runtime. 2020-05-29 22:54:55 +10:00
qemu-arm qemu-arm/Makefile: Add CFLAGS_EXTRA to CFLAGS. 2020-06-22 13:42:24 +10:00
samd all: Factor gchelper code to one place and use it for unix & ARM ports. 2020-04-29 23:45:19 +10:00
stm32 all: Rename absolute time-based functions to include "epoch". 2020-09-18 17:20:34 +10:00
teensy all: Update Python code to conform to latest black formatting. 2020-08-29 15:18:01 +10:00
unix ports: Add utime.gmtime() function. 2020-09-18 16:25:36 +10:00
windows windows: Show test failures in the Appveyor builds. 2020-09-11 10:56:02 +10:00
zephyr lib/utils/mpirq: Add mp_irq_init func, and clean up unused init method. 2020-09-04 12:40:38 +10:00