kopia lustrzana https://github.com/micropython/micropython-lib
datetime: Replace '"%c" % char' with '"%s" % char'.
MicroPython may have issues with unicode chars.pull/234/merge
rodzic
fe2b6d473a
commit
45fffed699
|
@ -1552,7 +1552,7 @@ class datetime(date):
|
||||||
Optional argument sep specifies the separator between date and
|
Optional argument sep specifies the separator between date and
|
||||||
time, default 'T'.
|
time, default 'T'.
|
||||||
"""
|
"""
|
||||||
s = ("%04d-%02d-%02d%c" % (self._year, self._month, self._day,
|
s = ("%04d-%02d-%02d%s" % (self._year, self._month, self._day,
|
||||||
sep) +
|
sep) +
|
||||||
_format_time(self._hour, self._minute, self._second,
|
_format_time(self._hour, self._minute, self._second,
|
||||||
self._microsecond))
|
self._microsecond))
|
||||||
|
|
Ładowanie…
Reference in New Issue