diff options
author | Krzysztof Adamski <k@japko.eu> | 2021-06-20 11:36:55 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-06-25 10:28:32 +1000 |
commit | 6409bbcb720be6c83d1fef3b7da14094b174a783 (patch) | |
tree | 85a1c8716f933d91e64604b74c71f71eff48a5ef /lib/timeutils/timeutils.h | |
parent | b51ae20c0714ea987ac0988c5d02b59e08048632 (diff) | |
download | micropython-6409bbcb720be6c83d1fef3b7da14094b174a783.tar.gz micropython-6409bbcb720be6c83d1fef3b7da14094b174a783.zip |
mimxrt: Move calc_weekday helper function to timeutils.
This function may be useful for other ports as well so lets move it to
timeutils so it can be reused.
Signed-off-by: Krzysztof Adamski <k@japko.eu>
Diffstat (limited to 'lib/timeutils/timeutils.h')
-rw-r--r-- | lib/timeutils/timeutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/timeutils/timeutils.h b/lib/timeutils/timeutils.h index 2d40f773cc..66e2a77f13 100644 --- a/lib/timeutils/timeutils.h +++ b/lib/timeutils/timeutils.h @@ -100,4 +100,6 @@ static inline int64_t timeutils_nanoseconds_since_epoch_to_nanoseconds_since_197 #endif +int timeutils_calc_weekday(int y, int m, int d); + #endif // MICROPY_INCLUDED_LIB_TIMEUTILS_TIMEUTILS_H |