timeparser
timeparser copied to clipboard
Implementation of Splunk's relative time syntax in Go
Timeparser
Go (golang) package for parsing time in Splunk's relative time syntax. See docs for format documentation, but here's some examples:
| Time | Description |
|---|---|
| -1m | One minute ago |
| +30m | 30 minutes from now |
| -4h@h | Four hours ago, snapped to the hour |
| -1week@week+1day | One week ago, snapped to Monday (1 day after Sunday, which is the default snap to) |
For details, see the API documentation.