DateTimeWithZone Constructor (long, decimal, TimeZone?)DateTimeWithZone Constructor (Long, Decimal, Nullable(Of TimeZone))DateTimeWithZone Constructor (long, decimal, Nullable<TimeZone>)

Initializes a new instance of the DateTimeWithZoneDateTimeWithZoneDateTimeWithZone structure from the specified number of days past the epoch (0001-01-01) and the specified number of seconds past midnight.

Syntax

Public Sub New ( _
    daysPastEpoch As Long, _
    secondsPastMidnight As Decimal, _
    timeZone As Nullable(Of TimeZone) _
)
public DateTimeWithZone(
    long daysPastEpoch,
    decimal secondsPastMidnight,
    Nullable<TimeZone> timeZone
)
public:
DateTimeWithZone(
    long daysPastEpoch, 
    decimal secondsPastMidnight, 
    Nullable<TimeZone> timeZone
)
 

Parameters

daysPastEpoch

Type: System.Int64System.Int64System::Int64

The number of days past the epoch (0001-01-01).

secondsPastMidnight

Type: System.DecimalSystem.DecimalSystem::Decimal

The number of seconds past midnight.

timeZone

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

The time zone (can be null a null reference (Nothing in Visual Basic) nullptr).

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.