Varun

Subtract hours from current time in Python

In this article, we will discuss different ways to subtract hours from current time in python using timedelta, pandas or relativedelta. Subtract hours from current time in Python using timedelta Python provides a module datetime for manipulation of date and time. It consists of following classes, datetime.date: An object of date class specifies a date […]

Subtract hours from current time in Python Read More »

Python: Get difference between two datetimes in milliseconds

In this article, we will discuss how to get the difference between two timestamps in milliseconds in python. Python provides a datetime module for manipulation of date and time. It consists of following classes, datetime.date: An object of date class specifies a date using year, month and day datetime.time: An object of time class specifies

Python: Get difference between two datetimes in milliseconds Read More »

Python: Get difference between two datetimes in microseconds

In this article, we will discuss how to get the difference between two datetimes in microseconds in python. Python provides a datetime module for manipulation of date and time. It consists of following classes, datetime.date: An object of date class specifies a date using year, month and day datetime.time: An object of time class specifies

Python: Get difference between two datetimes in microseconds Read More »

Scroll to Top