Skip to content

FORMATO 12 / 24 HORAS AM PM #129

Answered by Makuna
Piero15 asked this question in Q&A
Aug 27, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This library exposes time in the 24 hour model only. I made this decision to reduce code size for translation to/from the chips when it was often not needed.

Its easy enough to translate this to AM and PM on the client sketch if needed when displaying to or taking from the user. Since it is already a requirement for the sketch to manage time zones, the minor extra work to manage AM/PM felt like the right place to put that work.

p.s. I always suggest the model that the core time time/date be ZULU time (search for time zone offset zero). This is what the module should use and also what the sketch should store and only translate when displaying to the user if needed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Piero15
Comment options

Answer selected by Makuna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants