kopia lustrzana https://github.com/micropython/micropython-lib
time: Depend on ffilib.
rodzic
37d5611127
commit
4336125d3a
|
@ -1,3 +1,4 @@
|
|||
srctype = micropython-lib
|
||||
type = module
|
||||
version = 0.2
|
||||
version = 0.2.1
|
||||
depends = ffilib
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
|
||||
|
||||
setup(name='micropython-time',
|
||||
version='0.2',
|
||||
version='0.2.1',
|
||||
description='time module for MicroPython',
|
||||
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
|
@ -15,4 +15,5 @@ setup(name='micropython-time',
|
|||
maintainer='MicroPython Developers',
|
||||
maintainer_email='micro-python@googlegroups.com',
|
||||
license='MIT',
|
||||
py_modules=['time'])
|
||||
py_modules=['time'],
|
||||
install_requires=['micropython-ffilib'])
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from utime import *
|
||||
import ffi
|
||||
import _libc
|
||||
import ffilib
|
||||
import array
|
||||
|
||||
libc = _libc.get()
|
||||
libc = ffilib.libc()
|
||||
|
||||
# struct tm *gmtime(const time_t *timep);
|
||||
# struct tm *localtime(const time_t *timep);
|
||||
|
|
Ładowanie…
Reference in New Issue