The initializer for the TimespanBinder object takes an argument 'context',
which is what formatting to use for time. The default is "current". Other
options are "hour", "day", "week", "month", "year", and "rainyear". Choose
one of those, depending on whether you are displaying an aggregate over a
day, week, etc.

-tk



On Sun, Feb 5, 2017 at 9:09 AM, Thomas Carlin <[email protected]>
wrote:

> Hopefully my last question for this project.  If you are interested in the
> progress, the link in my first post includes the added history sections.
>
> I have defined several new tags in examples/ArchiveSearch.py
> today_last_year
> week_last_year
> mont_last_year
> last_year
> last_year_to_date
>
> and those all work as expected.  I can use them in my templates, and they
> give me the data that I expect to see (More or less, today_... is off one
> day, the wrong direction to compensate for leap year last year, but that is
> beside the point) but when it comes to the date fields, mintime, maxtime,
> etc. they are displaying using the 'current'  format defined in
> [[TimeFormats]]  I tried adding each of my tags to the [[TimeFormats]]
> list, but had no success.
>
> Is there something that I missed in the docs that explains this?
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to