Follow

Weird: the datetime library can make a datetime for 1st January 1AD, but can't produce its unix timestamp:

> datetime(1,1,1,0).timestamp()
ValueError: year 0 is out of range

> datetime(1,1,2,0).timestamp()
-62135510325.0

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mathstodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!