aboutsummaryrefslogtreecommitdiff
path: root/ports/windows
diff options
context:
space:
mode:
authorDamien George2020-08-31 14:55:54 +1000
committerDamien George2020-09-01 12:36:28 +1000
commit2a72e90ab8969b69304d84aa7070720d63c60d06 (patch)
tree93a48c852416f8797e688cc85b2afdf63295f056 /ports/windows
parent0385b21597a3e5dc3d1a84cd37848fc2ac2a0e20 (diff)
extmod/vfs: Add option to use 1970 as Epoch.
By setting MICROPY_EPOCH_IS_1970 a port can opt to use 1970/1/1 as the Epoch for timestamps returned by stat(). And this setting is enabled on the unix and windows ports because that's what they use. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/windows')
-rw-r--r--ports/windows/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/windows/mpconfigport.h b/ports/windows/mpconfigport.h
index fa09dda75..30389c700 100644
--- a/ports/windows/mpconfigport.h
+++ b/ports/windows/mpconfigport.h
@@ -123,6 +123,9 @@
#define MICROPY_WARNINGS (1)
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)
+// VFS stat functions should return time values relative to 1970/1/1
+#define MICROPY_EPOCH_IS_1970 (1)
+
extern const struct _mp_print_t mp_stderr_print;
#ifdef _MSC_VER