[This is preliminary documentation and is subject to change.]
Conversion methods which don't naturally fit into any other types - for example, for
enums which can't specify any other code. In most cases, conversions to and from BCL types
are provided within the type itself - such as ToDateTimeUnspecified()()()()
and FromDateTime(DateTime).

C# | Visual Basic | Visual C++ |
public static class BclConversions
Public NotInheritable Class BclConversions
public ref class BclConversions abstract sealed

All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
![]() ![]() | ToDayOfWeek(IsoDayOfWeek) |
Converts from the Noda Time IsoDayOfWeek enum to the equivalent BCL
DayOfWeek value. Other than Sunday, the BCL and ISO values are the same -
but ISO 8601 defines Sunday as day 7, and the BCL defines it as day 0.
|
![]() ![]() | ToIsoDayOfWeek(DayOfWeek) |
Converts from the BCL DayOfWeek enum to the equivalent Noda Time IsoDayOfWeek value.
Other than Sunday, the BCL and ISO values are the same - but ISO 8601 defines
Sunday as day 7, and the BCL defines it as day 0.
|

Many of the methods within this class could be expressed as extension methods - but currently
Noda Time always builds against .NET 2. In a future version, there may be multiple build targets,
allowing these to become extension methods for the builds which use .NET 3.5 and higher.

All members of this type are thread-safe. See the thread safety section of the user guide for more information.

Object | |
![]() | BclConversions |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)