Noda Time
WithCalendar Method (calendarSystem)
NamespacesNodaTimeOffsetDateTimeWithCalendar(CalendarSystem)

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

Creates a new OffsetDateTime representing the same physical date, time and offset, but in a different calendar. The returned OffsetDateTime is likely to have different date field values to this one. For example, January 1st 1970 in the Gregorian calendar was December 19th 1969 in the Julian calendar.
Declaration Syntax
C#Visual BasicVisual C++
public OffsetDateTime WithCalendar(
	CalendarSystem calendarSystem
)
Public Function WithCalendar ( _
	calendarSystem As CalendarSystem _
) As OffsetDateTime
public:
OffsetDateTime WithCalendar(
	CalendarSystem^ calendarSystem
)
Parameters
calendarSystem (CalendarSystem)
The calendar system to convert this local date to.
Return Value
The converted OffsetDateTime.
Exceptions
ExceptionCondition
ArgumentNullExceptioncalendarSystem is null.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)