Does Time.format support %Z (timezone abbreviation)?

I have an Argon running rc27 and I’m trying to print Time.format("%Z") to my 2.4" TFT FeatherWing. I have set my time zone to -6 by running but Time.format always prints GMT. I have also tried printing Time.format("%z") which prints -06:00 so I know it’s being set correctly. My guess is this is something that cut for space but is not noted, however, if it isn’t this would seem to be a bug in rc27.


@ParticleD, or @mstanley are you able to assist?

The Time.format function just passes the request off to strftime.

The standard C library functions are the ones from the gcc-arm toolchain (version 5.3.1 at this time).

As we don’t modify or even build the standard C libraries, if %Z is not supported, it’s unlikely to be added any time soon.


Thanks! I appreciate the info :slight_smile:

For anyone else that runs into this and is curious what’s going on, I found this Stack Overflow post.

1 Like