From 503137c655fae5d33b91d043b8b477a6686f05b8 Mon Sep 17 00:00:00 2001 From: Roland Schilter Date: Tue, 5 Dec 2017 16:34:37 +0100 Subject: [PATCH] Add days, hours, and minutes format (#98) Seen in Grafana source - `d`: https://github.com/grafana/grafana/blob/014f6d5a75757ba69041a086d8e025c05d978777/public/app/core/utils/kbn.ts#L694 - `h`: https://github.com/grafana/grafana/blob/014f6d5a75757ba69041a086d8e025c05d978777/public/app/core/utils/kbn.ts#L678 - `m`: https://github.com/grafana/grafana/blob/014f6d5a75757ba69041a086d8e025c05d978777/public/app/core/utils/kbn.ts#L660 --- grafanalib/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grafanalib/core.py b/grafanalib/core.py index f09a4da..1577e35 100644 --- a/grafanalib/core.py +++ b/grafanalib/core.py @@ -95,6 +95,9 @@ DURATION_FORMAT = "dtdurations" NO_FORMAT = "none" OPS_FORMAT = "ops" PERCENT_UNIT_FORMAT = "percentunit" +DAYS_FORMAT = "d" +HOURS_FORMAT = "h" +MINUTES_FORMAT = "m" SECONDS_FORMAT = "s" MILLISECONDS_FORMAT = "ms" SHORT_FORMAT = "short"