Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用与时区偏移为给定值的指定 DateTime 相同的日期和时间来构造 DateTimeWithTimeZone。
Public Sub New( ByVal dt As Date, ByVal tz_hour As Integer, ByVal tz_minute As Integer )
public DateTimeWithTimeZone(DateTime dt, int tz_hour, int tz_minute)
dt 日期和时间部分。
tz_hour 时区偏移小时。(-12 到 14)
tz_minute 时区偏移分钟。(-59 到 59)。只有在 tz_hour 为非正数时该值才可以为负数。
System.ArgumentOutOfRangeException tz_hour 或 tz_minute 超出范围时会抛出此异常。