![]() ![]() If secs is not provided or None, then the current time from the RTC is used. localtime ( ) ¶Ĭonvert a time expressed in seconds since the Epoch (see above) into an 8-tuple whichĬontains: (year, month, mday, hour, minute, second, weekday, yearday) If actual calendar time is not maintained with a system/MicroPython RTC,įunctions below which require reference to current absolute time mayįunctions ¶ utime. RTC time across hard resets, though some may require setting it again Set manually by a user on each power-up (many boards then maintain.Using networked time protocol (requires setup by a port/user).By a backup battery (which may be an additional, optional component for.May be set using machine.RTC().datetime(tuple) function, and maintained System time depends on machine.RTC() object. Time is responsibility of OS/RTOS and is done outside of MicroPython, ![]() On systems with underlying OS (including some Maintaining actual calendar date/time: This requires a Time Epoch: Unix port uses standard for POSIX systems epoch of Measuring time intervals, and for delays. The utime module provides functions for getting the current time and date, For more information, refer to the original This module implements a subset of the corresponding CPython module,Īs described below. ustruct – pack and unpack primitive data types.uselect – wait for events on a set of streams.uos – basic “operating system” services.ucollections – collection and container types.cmath – mathematical functions for complex numbers.Python standard libraries and micro-libraries. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |