Noda Time
NodaConverters Class
NamespacesNodaTime.Serialization.JsonNetNodaConverters

[This is preliminary documentation and is subject to change.]

Convenience class to expose preconfigured converters for Noda Time types, and factory methods for creating those which require parameters.
Declaration Syntax
C#Visual BasicVisual C++
public static class NodaConverters
Public NotInheritable Class NodaConverters
public ref class NodaConverters abstract sealed
Members
All MembersMethodsFields



IconMemberDescription
CreateDateTimeZoneConverter(IDateTimeZoneProvider)
Creates a converter for time zones, using the given provider.

CreateZonedDateTimeConverter(IDateTimeZoneProvider)
Creates a converter for zoned date/times, using the given time zone provider.

DurationConverter
Converter for durations.

InstantConverter
Converter for instants, using the ISO-8601 date/time pattern, extended as required to accommodate milliseconds and ticks, and specifying 'Z' at the end to show it's effectively in UTC.

IntervalConverter
Converter for intervals. This must be used in a serializer which also has an instant converter.

LocalDateConverter
Converter for local dates, using the ISO-8601 date pattern.

LocalDateTimeConverter
Converter for local dates and times, using the ISO-8601 date/time pattern, extended as required to accommodate milliseconds and ticks. No time zone designator is applied.

LocalTimeConverter
Converter for local times, using the ISO-8601 time pattern, extended as required to accommodate milliseconds and ticks.

NormalizingIsoPeriodConverter
Normalizing ISO converter for periods. Use this when you want compatibility with systems expecting ISO durations (~= Noda Time periods). However, note that Noda Time can have negative periods. Note that this converter losees information - after serialization and deserialization, "90 minutes" will become "an hour and 30 minutes".

OffsetConverter
Converter for offsets.

OffsetDateTimeConverter
Converter for offset date/times.

RoundtripPeriodConverter
Round-tripping converter for periods. Use this when you really want to preserve information, and don't need interoperability with systems expecting ISO.

Inheritance Hierarchy
Object
NodaConverters

Assembly: NodaTime.Serialization.JsonNet (Module: NodaTime.Serialization.JsonNet.dll) Version: 1.0.0.0 (1.0.0.0)