How to Install and Uninstall python2-pytimeparse Package on openSUSE Leap

Last updated: May 18,2024

1. Install "python2-pytimeparse" package

In this section, we are going to explain the necessary steps to install python2-pytimeparse on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python2-pytimeparse

2. Uninstall "python2-pytimeparse" package

In this section, we are going to explain the necessary steps to uninstall python2-pytimeparse on openSUSE Leap:

$ sudo zypper remove python2-pytimeparse

3. Information about the python2-pytimeparse package on openSUSE Leap

Information for package python2-pytimeparse:
--------------------------------------------
Repository : Main Repository
Name : python2-pytimeparse
Version : 1.1.8-bp153.1.15
Arch : noarch
Vendor : openSUSE
Installed Size : 56,6 KiB
Installed : No
Status : not installed
Source package : python-pytimeparse-1.1.8-bp153.1.15.src
Summary : Time expression parser
Description :
A small Python library to parse various kinds of time expressions,
inspired by a StackOverflow question.
The single function pytimeparse.timeparse.timeparse defined in the
library (also available as pytimeparse.parse) parses time expressions
like the following:
* 32m
* 2h32m
* 3d2h32m
* 1w3d2h32m
* 1w 3d 2h 32m
* 1 w 3 d 2 h 32 m
* ...
It returns the time as a number of seconds (an integer value if
possible, otherwise a floating-point number)
A number of seconds can be converted back into a string using the
datetime module in the standard library.