Feature Request 🚀
Currently https://docs.pycom.io/firmwareapi/pycom/machine/rtc does not show a nice example of formatting the datetime as a string. This would be useful as the standard python approach doesn't appear to work - rtc.now() returns a tuple and strftime is not anywhere in the pycom library from what I can see.
>>>rtc.now()
(2018, 11, 9, 5, 18, 18, 201719, None)
>>>rtc.now().strftime("%m%d%H%M%S")
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>AttributeError: 'tuple'objecthasnoattribute'strftime'
Feature Request 🚀
Currently https://docs.pycom.io/firmwareapi/pycom/machine/rtc does not show a nice example of formatting the datetime as a string. This would be useful as the standard python approach doesn't appear to work -
rtc.now()returns a tuple and strftime is not anywhere in thepycomlibrary from what I can see.