Something like $span(day_delta=365).length.day.format("%d") <br/> $span(day_delta=1).length.day.format("%d")
will generate 365 days 1 day On Fri, Dec 1, 2023 at 10:47 PM michael.k...@gmx.at < michael.kainzba...@gmx.at> wrote: > I have a report that reports the rain sum for the last 365 days: > > $span(day_delta=365).rain.sum > > I want to label this value like so: > > 365 days: 997mm > > Is there a way to format the number 365 with $units.labels.day? > Something like: > > $format(365, $units.labels.day) => 365 days > $format(1, $units.labels.day) => 1 day > > > > > > > > > -- > 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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/ce86da41-9f28-41cf-a5c1-bd07b0990cb6n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/ce86da41-9f28-41cf-a5c1-bd07b0990cb6n%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECmNFtYsECAHk%2BezHo7isOebvUcZQcuUydb5wbH9aX_mA%40mail.gmail.com.