Limit subseconds precision #418
Replies: 1 comment 8 replies
-
format_description!("[year]-[month]-[day]T[hour]:[minute]:[second].[subsecond digits:3]") I'm assuming you need something like RFC3339, not RFC3339 itself, given that you mentioned the possibility of custom formats. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use time to format UTC into rfc3339.
Unfortunately the nanoseconds precision is a bit too high and appears very verbose in the logs.
I would love to either have a way to limit the precision of a format to milliseconds precision,
or at least make it possible to define it using a custom format.
With time's DSL, I don't think I can express
"%Y-%m-%dT%H:%M:%S%.3f"
Beta Was this translation helpful? Give feedback.
All reactions