How To Install python-isodate on CentOS 7
Introduction
In this tutorial we learn how to install python-isodate
on CentOS 7.
What is python-isodate
This module implements ISO 8601 date, time and duration parsing. The implementation follows ISO8601 only date/time representations mentioned in the standard. If something is not mentioned there, then it is treated as non existent, and not as an allowed option. For instance, ISO8601 not intended by this module to support 2 digit years. (while it may still be valid as ISO date, because it is not explicitly forbidden.) Another example is, when no time zone information is given for a time, then it should be interpreted as local time, and not UTC. As this module maps ISO 8601 dates/times to standard Python data types, like date, time, datetime and timedelta, it is not possible to convert all possible ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by the Python date and datetime classes. Additionally fractional seconds are limited to microseconds. That means if the parser finds for instance nanoseconds it will round it to microseconds.
We can use yum
or dnf
to install python-isodate
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-isodate.
Install python-isodate on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-isodate
using yum
by running the following command:
Install python-isodate on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python-isodate
using dnf
by running the following command:
How To Uninstall python-isodate on CentOS 7
To uninstall only the python-isodate
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-isodate
on CentOS 7 using yum
and dnf
.