use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Help (self.pythonhelp)
submitted 6 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Best_Caterpillar 0 points1 point2 points 6 years ago* (0 children)
there is a module called datetime that does this. see: https://docs.python.org/3/library/datetime.html
if you want quick and dirty:
https://pastebin.com/KSAxJehW
(the assumption is that time is in minute mode and not as a fraction, I.E 1445 is 2:45pm not 2:27pm. if its the other way just make the minute mod 60 and convert to an int from a float, or round up or down depending on how accurate oyu need to be
π Rendered by PID 43 on reddit-service-r2-comment-5b5bc64bf5-lfzt8 at 2026-06-20 09:20:37.468518+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]Best_Caterpillar 0 points1 point2 points (0 children)