4 ms·
Yeah, typing datetime.datetime for everything gets pretty old. I just remember that datetime is the package, datetime.datetime is the class, and datetime.datet
by falcolas 13y ago
Yeah, typing datetime.datetime for everything gets pretty old.
I just remember that datetime is the package, datetime.datetime is the class, and datetime.datetime.now() is a @classmethod that returns instances of that class. I do kinda wish it was datetime.now() for the constructor instead.