Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 1.31 KB

File metadata and controls

16 lines (11 loc) · 1.31 KB

Timeparser

Build Status Go Report Card GoDoc

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.