← index #3830PR #2334
Related · high · value 2.730
QUERY · ISSUE

No format of tzinfo accepted in RTC.init()

openby VipSaranopened 2018-05-31updated 2018-06-01

Documentation defines RTC.init() method accepting tzinfo argument:

.. method:: RTC.init(datetime)

   Initialise the RTC. Datetime is a tuple of the form:

      ``(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])``

But not just that that docu doesn't specify format (Object/String) of the tzinfo it also "doesn't work".

CANDIDATE · PULL REQUEST

docs: Make the machine.RTC reflect reality on esp8266

closedby deshipuopened 2016-08-20updated 2019-08-31

The documentation for machine.RTC is completely worng, not only
specifying wrong method names, but also wrong order of values in
the time tuple. Updated based on the source code.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied