Easy Python Datetime strftime() Example

Published: 24 September 2022
on channel: Make That Work
121
10

Using time stamps is important for loads of applications. It's often necessary to work with time stamps in the form of strings.

Datetime has a handy function called strftime() which converts a datetime object to a string. All you need to do is supply it with a a string which defines the format you want. The datetime format codes let you access whatever bit of information you need from the datetime object (e.g. the year or the hour and so on)

Datetime format codes: https://docs.python.org/3/library/dat...


On this page of the site you can watch the video online Easy Python Datetime strftime() Example with a duration of hours minute second in good quality, which was uploaded by the user Make That Work 24 September 2022, share the link with friends and acquaintances, this video has already been watched 121 times on youtube and it was liked by 10 viewers. Enjoy your viewing!