Difference between UTC and GMT

Astronomy versus Atomic clock By the original definitions the difference is that GMT (also officially known as Universal Time (UT), which may be confusing) is based on astronomical observations while UTC is based on atomic clocks. Later GMT has become to be used at least unofficially to refer to UTC, which blurs the distinction somewhat. GMT stands for Greenwich … Read more

Converting string into datetime

datetime.strptime is the main routine for parsing strings into datetimes. It can handle all sorts of formats, with the format determined by a format string you give it: The resulting datetime object is timezone-naive. Links: Python documentation for strptime: Python 2, Python 3 Python documentation for strptime/strftime format strings: Python 2, Python 3 strftime.org is … Read more

Converting string into datetime

datetime.strptime is the main routine for parsing strings into datetimes. It can handle all sorts of formats, with the format determined by a format string you give it: The resulting datetime object is timezone-naive. Links: Python documentation for strptime: Python 2, Python 3 Python documentation for strptime/strftime format strings: Python 2, Python 3 strftime.org is … Read more