./time/py-pytimeparse, Time expression parser

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1.8nb1, Package name: py310-pytimeparse-1.1.8nb1, Maintainer: pkgsrc-users

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
...


Required to run:
[lang/python310]

Master sites:

Filesize: 9.183 KB

Version history: (Expand)


CVS history: (Expand)


   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:24:47 by Nia Alarie | Files touched by this commit (263)
Log message:
time: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 17:04:23 by Nia Alarie | Files touched by this commit (263)
Log message:
time: Remove SHA1 hashes for distfiles
   2020-10-06 10:37:23 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-pytimeparse: cleanup
   2019-11-02 17:28:42 by Roland Illig | Files touched by this commit (40)
Log message:
time: align variable assignments

pkglint -Wall -F --only aligned -r

No manual corrections.
   2019-07-07 12:14:44 by Benny Siegert | Files touched by this commit (4)
Log message:
Add a package for py-pytimeparse-1.1.8.

PR pkg/54340.

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
    ...