Skip to content

CosmosTime.OffsetTime.Now(System.TimeZoneInfo)

osexpert edited this page Jul 22, 2023 · 3 revisions

OffsetTime.Now(TimeZoneInfo) Method

Get Now in a zone (time will always be utc, but the offset captured will depend on the tz)

public static CosmosTime.OffsetTime Now(System.TimeZoneInfo tz);

Parameters

tz System.TimeZoneInfo

Returns

OffsetTime

Exceptions

System.ArgumentNullException

System.Exception

Clone this wiki locally