Page 1 of 1

Format of <#LightningTime>

Posted: Wed 22 Jun 2022 10:16 am
by The Dalek Hunter
I have an Ecowitt Lightning detector and I am trying to write my own (very simple) page to display the results

<#LightningDistance> is fine

<#LightningTime> just returns the time of the last strike and I want date and time.

The Wiki says "Date and Time of last strike (default without output parameters is locale's short time format e.g. 18:02 or 6:02 pm, without date, but tag accepts both date and time output parameters)" but I don't know how to do this!!

How do I output the date and time please

Thanks

Re: Format of <#LightningTime>

Posted: Wed 22 Jun 2022 11:33 am
by water01
Details on how to do this are here https://cumuluswiki.org/a/Webtags/Parameters

Re: Format of <#LightningTime>

Posted: Wed 22 Jun 2022 12:34 pm
by The Dalek Hunter
Many thanks - the answer is

<#LightningTime format="HH:mm' on 'd MMMM yyyy">


:) :) :) :) :)

Re: Format of <#LightningTime>

Posted: Wed 22 Jun 2022 12:49 pm
by dazza1223
The Dalek Hunter wrote: Wed 22 Jun 2022 10:16 am I have an Ecowitt Lightning detector and I am trying to write my own (very simple) page to display the results

<#LightningDistance> is fine

<#LightningTime> just returns the time of the last strike and I want date and time.

The Wiki says "Date and Time of last strike (default without output parameters is locale's short time format e.g. 18:02 or 6:02 pm, without date, but tag accepts both date and time output parameters)" but I don't know how to do this!!

How do I output the date and time please

Thanks
like this

<#LightningTime format="HH:mm:ss / dd-MM-yyyy">