ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
MIT License
327
stars
92
forks
source link
Timezone::dateTime(time_t, ...) shows wrong milliseconds value #24
When using date and time formatting of an argument-passed timestamp, Timezone::dateTime(time_t, ...) would display last read milliseconds instead of zero for the v placeholder.
And an option to pass milliseconds along with the timestamp would be very handy. Probably with another overloaded variant of Timezone::dateTime(...).
Although ms-precision datetime formatting is still possible with some string gluing code and maintaining two time formats for both current and variable-based time formatting, it's a pity not having it in such a great library. :)
Sorry for late reply. Whoops, that should indeed be zero then. Will think about the second version of dateTime and keep this open for now until the next time I get to work on ezTime, hopefully soon.
Timezone::dateTime(time_t, ...)
would display last read milliseconds instead of zero for thev
placeholder.Timezone::dateTime(...)
.Although ms-precision datetime formatting is still possible with some string gluing code and maintaining two time formats for both current and variable-based time formatting, it's a pity not having it in such a great library. :)