Hello all,
I am designing a dashboard that will use a timer pick to build search. I would like to show in the panel title the time in the same format as any Search:
7/6/17 9:00:00.000 AM to 7/13/17 9:19:00.000 AM
But when I add the timer in the title I am getting the "snap to time" format:
Between $timer.earliest$ and $timer.latest$
=
Between -7d@h and now
Is there anyway I can format it to string? I tried feel combinations, but they didn't work:
1st:
<row>
<panel>
<title>Select Desired Time of oom-killer Invocation</title>
<table>
<title>Between strftime($timer.earliest$,"%c") and strftime($timer.latest$,"%c")</title>
<search>
Output:
Between strftime(-7d@h,"%c") and strftime(now,"%c")
2nd:
<input type="time" token="timer" searchWhenChanged="true">
<label>Timeframe</label>
<default>
<earliest>-7d@h</earliest>
<latest>now</latest>
</default>
<change>
<unset token="SearchHost"></unset>
<unset token="tssnservice"></unset>
<eval token="searliest">strftime(earliest,"%c")</eval>
<eval token="slatest">strftime(latest,"%c")</eval>
</change>
</input>
...
<table>
<title>Between $searliest$ and $slatest$</title>
<search>
...
OUTPUT:
Between Invalid date and Invalid date
and...
<input type="time" token="timer" searchWhenChanged="true">
<label>Timeframe</label>
<default>
<earliest>-7d@h</earliest>
<latest>now</latest>
</default>
<change>
<unset token="SearchHost"></unset>
<unset token="tssnservice"></unset>
<eval token="searliest">'strftime(earliest,"%c")'</eval>
<eval token="slatest">'strftime(latest,"%c")'</eval>
</change>
</input>
...
<table>
<title>Between $searliest$ and $slatest$</title>
<search>
...
OUTPUT:
Between $searliest$ and $slatest$
Is there any other option?
Thank you,
Gerson
... View more