Closed Kyuchumimo closed 1 year ago
See: https://docs.micropython.org/en/latest/library/time.html#time.localtime • weekday is 0-6 for Mon-Sun
• weekday is 0-6 for Mon-Sun
Closed because the DS3231 stores the day in a range from 1 to 7 according to the datasheet. The function get_time calls the function convert which compensates the result subtracting 1 from the variable wday
get_time
convert
wday
See: https://docs.micropython.org/en/latest/library/time.html#time.localtime
• weekday is 0-6 for Mon-Sun