2 ms·
> My rule is to either work with integer Unix timestamps or timezone-aware datetime objects. A naive datetime object is, well, naive. If it's the number of seco
by the_mitsuhiko 15y ago
> My rule is to either work with integer Unix timestamps or timezone-aware datetime objects. A naive datetime object is, well, naive. If it's the number of seconds since the Epoch, represent it as a number, not an object.
The object is basically just a wrapper around that number anyways. From the programmer's perspective there is not really a difference.