Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That works now.


Does it?

  >>> from datetime import datetime
  >>> datetime.now()
  Traceback (most recent call last):
    File "<console>", line 1, in <module>
    File "/lib/pypyjs/lib_pypy/datetime.py", line 1548, in now
      return cls.fromtimestamp(t, tz)
    File "/lib/pypyjs/lib_pypy/datetime.py", line 1511, in fromtimestamp
      us = _round(frac * 1e6)
    File "/lib/pypyjs/lib_pypy/datetime.py", line 28, in _round
      return int(_math.floor(x + 0.5) if x >= 0.0 else _math.ceil(x - 0.5))
  ValueError: cannot convert float NaN to integer




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: