Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python module for date manipulation

Tags:

python

date

r

Is there a python module specifically for date manipulation. Something equivalent to the lubridate package in R.

like image 787
John Avatar asked May 17 '26 05:05

John


1 Answers

Python have a built-in module for handling datetime..You can try that..!!

But if want something extended (like want to build a generic datetime parser), go for python-dateutil

from dateutil.parser import parse
datetimeObj = parse(strDate) 
# str date is a date string
like image 100
Ramandeep Singh Avatar answered May 18 '26 17:05

Ramandeep Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!