Noda Time
InZone Method (zone, calendar)
NamespacesNodaTimeInstantInZone(DateTimeZone, CalendarSystem)

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

Returns the ZonedDateTime representing the same point in time as this instant, in the specified time zone and calendar system.
Declaration Syntax
C#Visual BasicVisual C++
public ZonedDateTime InZone(
	DateTimeZone zone,
	CalendarSystem calendar
)
Public Function InZone ( _
	zone As DateTimeZone, _
	calendar As CalendarSystem _
) As ZonedDateTime
public:
ZonedDateTime InZone(
	DateTimeZone^ zone, 
	CalendarSystem^ calendar
)
Parameters
zone (DateTimeZone)
The time zone in which to represent this instant.
calendar (CalendarSystem)
The calendar system in which to represent this instant.
Return Value
A ZonedDateTime for the same instant, in the given time zone and calendar
Exceptions
ExceptionCondition
ArgumentNullExceptionzone or calendar is null.

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