I love the idea but can it be called something more specific to time? (Such as “duration”?)

Joel

Sent from my iPhone

On Nov 5, 2022, at 5:12 AM, Tom Keffer <[email protected]> wrote:


Good idea. Wouid you like to submit a PR?

On Sat, Nov 5, 2022 at 12:35 AM Karen K <[email protected]> wrote:
Months are not always of the same length. Days vary in length when daylight savings time starts or ends. How about a length property in TimespanBinder?

    @property
    def length(self):
        val = weewx.units.ValueTuple(self.timespan.stop-self.timespan.start, 'second', 'group_deltatime')
        return weewx.units.ValueHelper(val, self.context, self.formatter, self.converter)

--
You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/e2899330-5750-4840-9211-c9e8a3b169bfn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/CAPq0zEBkbJ4tKvdV%3D%3D478RKtOd8x3HojAwP39NJDJQrMuNNA5A%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/E7099ED0-268B-4CF7-BDC5-796A50116F8E%40gmail.com.

Reply via email to