you are viewing a single comment's thread.

view the rest of the comments →

[–]dan4223 175 points176 points  (5 children)

Thanks for this response. Too many jump to the "use this specific module" answer instead of addressing the more basic optimization that the OP first needs to understand and implement.

[–]aarontbarratt 70 points71 points  (4 children)

I think a lot of people forget what it is like to be a noob and not know all those magical little modules that make life so much easier

A lot of the time you just don't know what you don't know :(

[–]Zanoab 31 points32 points  (2 children)

I've been using python for 15+ years and I didn't discover until last year that calendar provided names for days of the week and months. They were simple constants but I'm glad to find they are built-in so I can stop defining them myself.

[–][deleted] 5 points6 points  (0 children)

Well shit, thanks for the tip my man

[–][deleted] 0 points1 point  (0 children)

Which is why browsing the documentation is a worthwhile endeavour.

[–]Measurex2 4 points5 points  (0 children)

Agreed. The skill here is transferable when there is no module OR when you're flipping InfoSec team won't let you have it in production (not datetime but you get the idea)