Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.1K+ articles
School Learning
11.5K+ articles
Java
10.0K+ articles
Misc
8.5K+ articles
python-modules
399+ articles
Python time-module
19 posts
Recent Articles
Popular Articles
How to add Time Delay in Python?
Last Updated: 25 June 2025
A time delay means pausing the program for a short period before continuing to the next step. This is useful when you want to slow down the execution, like waiting between...
read more
Python
Picked
Technical Scripter 2020
Python time-module
Python - time.ctime() Method
Last Updated: 16 July 2021
Python time.ctime() method converts a time in seconds since the epoch to a string in local time. This is equivalent to asctime(localtime(seconds)). Current time is returne...
read more
Python
Picked
Python time-module
How to Measure Elapsed Time in Python
Last Updated: 23 April 2025
In Python, we can measure the elapsed time (time taken for a specific task to complete) on executing a code segment or a Python script. It's useful when we are benchmarkin...
read more
Python
Picked
Python-datetime
Python time-module
How to check the Execution Time of Python script ?
Last Updated: 27 June 2025
Checking the execution time of a python script helps you measure how long a piece of code takes to run. This is useful for analyzing performance, especially when working w...
read more
Python
Picked
Python-datetime
Python time-module
Python Time Module
Last Updated: 13 August 2024
In this article, we will discuss the time module and various functions provided by this module with the help of good examples.As the name suggests Python time module allow...
read more
Python
python-modules
Python time-module
Python time strptime() function
Last Updated: 13 September 2021
The strptime() function in Python is used to format and return a string representation of date and time. It takes in the date, time, or both as an input, and parses it acc...
read more
Python
Picked
Blogathon
Blogathon-2021
Python time-module
Python time.thread_time() Function
Last Updated: 05 November 2021
Timer objects are used to represent actions that need to be scheduled to run after a certain instant of time. These objects get scheduled to run on a separate thread that ...
read more
Python
Picked
Python time-module
Python time.thread_time_ns() Function
Last Updated: 05 November 2021
Python time.thread_time_ns() function is used to return the value of the sum of the system and user CPU time of the current thread. It is similar to time.thread_time() fun...
read more
Python
Picked
Python time-module
Python time.timezone Constant
Last Updated: 05 November 2021
Python time. timezone constant returns the local (non-DST) timezone offset in UTC format, where DST stands for Daylight Saving Time. It is negative in most of Western Euro...
read more
Python
Picked
Python time-module
Python time altzone() Method
Last Updated: 05 November 2021
Python altzone() method is used to return the offset of the local DST timezone, in seconds west of UTC. We can also get the current time between the current time zone and ...
read more
Python
Picked
Python time-module
Python time.perf_counter_ns() Function
Last Updated: 05 November 2021
Python time.perf_counter_ns() function gives the integer value of time in nanoseconds.Syntax:from time import perf_counter_nsWe can find the elapsed time by using start an...
read more
Python
Picked
Python time-module
Python time.tzname() Function
Last Updated: 22 November 2021
Time tzname() in Python returns the tuple of two strings in which the first string is the name of the local non-DST timezone and the second string is the name of the local...
read more
Python
Picked
Python time-module
Python time.tzset() Function
Last Updated: 05 August 2022
In Python, the tzset() function of the time module is based on the re-initialization settings using the environment variable TZ. tzset() method of time module in python re...
read more
Python
Picked
Python time-module
Python time.daylight() Function
Last Updated: 19 December 2021
Time.daylight() function which returns a non zero integer value when Daylight Saving Time (DST) is defined, else it returns 0. Daylight Saving Time, in short, is called DS...
read more
Python
Picked
Python time-module
Python time.pthread_getcpuclockid() Function
Last Updated: 21 February 2022
The pthread_getcpuclockid() function returns the clock id of the thread-specific CPU-time clock for the specified thread_id. The thread ids are obtained from the different...
read more
Python
Picked
Python time-module
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !