gregor icon indicating copy to clipboard operation
gregor copied to clipboard

Feature request: period parsing

Open jackfirth opened this issue 7 years ago • 8 comments

Frequently I wish to pass a time period as an argument to programs, either through command line flags or environment variables. While gregor has facilities for parsing times and dates, there's nothing to parse "12d" into (days 12). A parse-period function would suit my needs perfectly. It's easy enough to write myself, but this seems like something that gregor should set a standard for.

jackfirth avatar Dec 30 '16 03:12 jackfirth