Python sleep() Function

Python sleep() Function

The sleep() function suspends (waits) execution of the current string for a given number of seconds. Python has a module named time which provides several valuable functions to handle with time-related tasks. One of the popular functions among them is Read More …

Python time Module

Python time Module

In this tutorial, we will explore the time module in detail. We will learn to use distinctive time-related functions characterized in the time module with the help of examples. Python has a module named time to handle with time-related errands. Read More …

Python timestamp to datetime and vice-versa

Python timestamp to datetime and vice-versa

In this article, you will learn how to convert timestamp to datetime object and datetime item to timestamp (with the help of examples). It’s entirely basic to store date and time as a timestamp in a database. A Unix timestamp Read More …

Python Get Current time

Python Get Current time

In this tutorial, you will learn to get the current time of your locale as well as various time zones in Python. There are various ways you can take to get the current time in Python. Example 1: Current time Read More …

How to get the current date and time in Python?

How to get the current date and time in Python?

In this article, you will learn to get today’s date and current date and time in Python. We will also formate the date and time in various formats using the strftime() method. There are various ways you can take to Read More …

Python strptime()

Python strptime(): In this tutorial, you will learn to make a datetime object from a string (with the help of examples). The strptime() method creates a datetime object from the given string. Note: You cannot create a datetime object from Read More …

Python strftime()

Python strftime()

Python strftime(): In this article, you will learn how to convert date, time and datetime items to its equivalent string (with the help of examples) The strftime() method returns a string representing date and time using date, time, or datetime Read More …

Python datetime

Python datetime

Python datetime: In this article, you will learn how to manipulate date and time in Python with the help of examples. Python has a module named datetime to work with dates and times. let’s create a few simple programs related to Read More …

Python RegEx

Python RegEx

Python RegEx: In this tutorial, you will find out about regular expressions (RegEx), and use Python’s re module to work with RegEx (with the help of examples). A Regular Expression (RegEx) is an arrangement of characters that characterizes an inquiry Read More …

Python @property decorator

Python @property decorator

Python @property decorator: In this tutorial, you will find out about Python @property decorator; a pythonic way to use getters and setters in object-oriented programming. Python programming provides us an inherent @property decorator which makes utilization of getter and setters a Read More …