For anyone else who comes down this road, I found another way to remove the leading zero:
$week.windGust.maxtime.format("(%-m/%-d)") Note the hyphens after the %'s. On February 2, this will return: 2/2 Without the hyphens it returns: 02/02 On Monday, March 6, 2017 at 4:01:54 PM UTC-8, Alec Bennett wrote: > > Aha, to answer my own question, looks like the format tag supports > additional operations. So for example, this prints the timestamp for the > maximum wind of the week formatted like 1:15pm > > $week.windGust.maxtime.format("%I:%M%p").lstrip("0").lower() > > > > On Monday, March 6, 2017 at 3:49:15 PM UTC-8, Alec Bennett wrote: >> >> I'm trying to show timestamps in my Standard Report like this: >> >> Max wind at 1:13pm >> >> Note that there's no leading zero on the 1, and the am/pm is lowercase. >> >> Can anyone think of a way to do 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.