I know nothing about Neowx-material, so I have no idea what format 
$Extras.Formatting.datetime_today specifies, but have you tried 
$forecast.zambretti.issued_ts.format("%H:%M 
%d-%b")? I can't see any way that $Extras.Formatting.datetime.format("%H:%M 
%d-%b") will do what you want.

Note the correct syntax is for .format is  
.format(format_string="your_format_string"), but omitting format_string= 
should work fine in your case.

Gary
On Tuesday, 16 May 2023 at 19:34:28 UTC+10 [email protected] wrote:

> Thanks Vince, but that's the problem, it doesn't seem to adhere to the 
> normal formatting options. If I change the code to this:
>
>           <div class="col-3 text-muted font-small indigo-text">
>           Issued at <br>
>           
> $forecast.zambretti.issued_ts.format($Extras.Formatting.datetime.format("%H:%M
>  
> %d-%b"))
>           </div>
>
> Then the card displays this:
>
> [image: Screenshot 2023-05-16 at 10.31.41.png]
>
> But I want the time to be displayed before the day / date, i.e Issued at 
> 09:00 Tue 16
> On Tuesday, May 16, 2023 at 12:05:55 AM UTC+1 vince wrote:
>
>> https://weewx.com/docs/customizing.htm#formatting_options
>>
>> On Monday, May 15, 2023 at 2:20:56 AM UTC-7 Rory Gillies wrote:
>>
>>> I know there must be an easy answer to this but it's eluding me at the 
>>> moment! I use the Neowx-Material skin and have created a custom Zambretti 
>>> forecast card using the Weewx Forecast extension on the index.html page 
>>> which looks like this:
>>>
>>> [image: Screenshot 2023-05-15 at 10.13.50.png]
>>>
>>> The code that displays the "Issued at" value is:
>>>
>>>           <div class="col-3 text-muted font-small indigo-text">
>>>           Issued at <br>
>>>           
>>> $forecast.zambretti.issued_ts.format($Extras.Formatting.datetime_today)
>>>           </div>
>>>
>>> What I want it to read is "Issued at 09:00 on Monday 15" (using today as 
>>> an example) but I can't seem to find the correct syntax. Any ideas?
>>>
>>> Thanks in advance!
>>>
>>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/161cdce9-6333-4995-8e68-cab27dedf8d5n%40googlegroups.com.

Reply via email to