4 ms·
OK, you’ve convinced me that having a naive datetime object available makes sense but are there any cases where “now” being naive is useful
by jes5199 3y ago
OK, you’ve convinced me that having a naive datetime object available makes sense
but are there any cases where “now” being naive is useful
- garblegarble 3y agoNo, I can't think of any case where that would be useful (although I do take umbrage with a local datetime being referred to as a 'naive' type - it serves a very specific purpose as a primitive... if it's naive then so is an int, since it does not specify a unit). I don't know anything about Python's datetime handling (other then to be alarmed by it given what I've seen in this thread). I live in the Java world where the java.time library is one of the best around (after a decade or more of Java having one of the worst date time libraries)
- newacct4308 3y ago[dead]