Skip to content

Include standard Duration pattern that matches the one used for JSON #1290

@maciejjarzynski

Description

@maciejjarzynski

The standard Duration pattern described in the docs:
https://nodatime.org/2.3.x/userguide/duration-patterns
is -D:hh:mm:ss.FFFFFFFFF
whereas the JsonConverter in
https://github.com/nodatime/nodatime.serialization/blob/edf88349e54ab63f06266a9c864edfa1ba6503cb/src/NodaTime.Serialization.JsonNet/NodaConverters.cs#L102

has a pattern -H:mm:ss.FFFFFFFFF.
Does this serve any purpose, or it can simply be DurationPattern.Roundtrip there?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions