mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 20:50:31 -04:00
Commit b7f05445c0
has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
15 lines
367 B
Text
15 lines
367 B
Text
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
|
|
|
|
...
|
|
|
|
It returns the time as a number of seconds (an integer value if possible, otherwise a floating-point number):
|
|
|
|
>>> from pytimeparse import parse
|
|
>>> parse('1.2 minutes')
|
|
72
|