TimeWithZone Constructor (decimal, TimeZone?)TimeWithZone Constructor (Decimal, Nullable(Of TimeZone))TimeWithZone Constructor (decimal, Nullable<TimeZone>)

Initializes a new instance of the TimeWithZoneTimeWithZoneTimeWithZone structure with the specified number of seconds past midnight, in the specified time zone.

Syntax

Public Sub New ( _
    secondsPastMidnight As Decimal, _
    timeZone As Nullable(Of TimeZone) _
)
public TimeWithZone(
    decimal secondsPastMidnight,
    Nullable<TimeZone> timeZone
)
public:
TimeWithZone(
    decimal secondsPastMidnight, 
    Nullable<TimeZone> timeZone
)
 

Parameters

secondsPastMidnight

Type: System.DecimalSystem.DecimalSystem::Decimal

The number of (whole and partial) seconds between midnight and this time.

timeZone

Type: System.Nullable<T>System.Nullable(Of T)System::Nullable<T>

The time zone component.