Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread David Bätge
*Now I recognize that when one is running a report that works in units of days, not instants of time, you might want to represent the end of the month as being 31-Jan-2010 (no time) and not 1-Feb-2010 00:00. * *Thinking out loud here, we could create tags such as:* *$week.last_day* *$month.last

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread michael.k...@gmx.at
Ah! Ok! Nevermind. I probably never really get warm with google groups... :^) Tom Keffer schrieb am Dienstag, 28. Februar 2023 um 20:43:57 UTC+1: > My comment was in response to Karen's comment. > > On Tue, Feb 28, 2023 at 10:58 AM michael.k...@gmx.at > wrote: > >> Yes, I agree, but I am think

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread Tom Keffer
My comment was in response to Karen's comment. On Tue, Feb 28, 2023 at 10:58 AM michael.k...@gmx.at < michael.kainzba...@gmx.at> wrote: > Yes, I agree, but I am thinking a little bit out of the standard weewx > box. A calculated average month observation, computed by weewx, using the > local time

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread michael.k...@gmx.at
Yes, I agree, but I am thinking a little bit out of the standard weewx box. A calculated average month observation, computed by weewx, using the local timezone, uploading to a static website will be lead to a common user experience, regardless where it is viewed from. On the other hand, when you

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread Tom Keffer
If you regard a day as ending precisely at midnight, the convention is the same for both archive intervals and for a day: exclusive on the left, inclusive on the right. A five-minute archive interval timestamped 11:35 includes all data from just after 11:30 to precisely 11:35. In a similar manner,

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread michael.k...@gmx.at
Tom explained the reason, I want to add some important consideration: you need to distinguish between an Instant (e.g. 1-Feb-2010 00:.123456789 ) and a (Local!) calendar date. If you want a report "Average Temperature in March 2022" for your station, it needs to be based on all the values

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread Karen K
May be it worth mentioning the background that the archive interval is open at the left end (start time) and closed at the right end (end time). That is not uncommon. It is a widely used design. That is because it is the only way to combine values that summarize the archive interval with actual

Re: [weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread Tom Keffer
I assume you are referring to the tags $month.start and $month.end, the start and stop of the interval $month. See http://www.weewx.com/docs/customizing.htm#Start,_end,_and_dateTime Using the example from the Customizing Guide, if $month.end returned 31-Jan-2010, what time should it be? It can't b

[weewx-user] Why are the Weather intervals (week, month, year) all off by one day?

2023-02-28 Thread Marcus Zurhorst
Hi all. *I am wondering why the website tells me that the intervall for the current months spans "01.02.2023 - 01.03.2023"? -- Same for year, which goes to Jan 1, 2024 actually.* *Whilst being a minor glitch, I do not understand this design decision at all since it is uncommon. Can somebod