I can't think of any way to do that using a simple format string. You'll
have to do something like:

#set hours_up = $almanac.sun.visible.raw / 3600.0
<p>Sun up:  $("%.2f" % $hours_up)</p>



On Sat, Nov 5, 2022 at 9:00 AM Karen K <[email protected]> wrote:

> Is there a way to format a value of group_deltatime in decimal hours
> instead of hours, minutes, and seconds?
>
> Something like
> daylight: 9.5 hours
> instead of
> daylight: 9 hours, 30 minutes, and 0 seconds
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/15b424e4-e698-4603-b247-95a0326dc195n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/15b424e4-e698-4603-b247-95a0326dc195n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDjWJrWEAGbS6i_mT%3D%3D3PTDg%2B3150ZQO2tyeSNksi7yEQ%40mail.gmail.com.

Reply via email to