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
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
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |