Skip to content

time.time() is reported to return negative numbers #8

@jepler

Description

@jepler

Hardware

Reporter did not specify

m86k MicroPython version

Reporter did not specify

Reproduction

  1. Open the repl
  2. import time; time.time()
  3. time.localtime()

Expected behaviour

time.time should show micropython epoch time (epoch date = 2000). time.localtime should show the current date and time.

Observed behaviour

time.time reported a negative number

Additional Information

I test on umac which doesn't seem to implement the RTC anyway.

Code of Conduct

Yes, I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions