Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用指定的年、月、日、小时、分钟、秒、毫秒、时区小时和时区分钟来构造 DateTimeWithTimeZone。
Public Sub New( ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal tz_hour As Integer, ByVal tz_minute As Integer )
public DateTimeWithTimeZone( int year, int month, int day, int hour, int minute, int second, int millisecond, int tz_hour, int tz_minute )
year 年。(1 到 9999)
month 月。(1 到 12)
day 日。(1 到 month 中的天数)
hour 小时。(0 到 23)
minute 分钟。(0 到 59)
second 秒。(0 到 59)
millisecond 毫秒。(1 到 999)
tz_hour 时区偏移小时。(-12 到 14)
tz_minute 时区偏移分钟。(-59 到 59)。只有在 tz_hour 为非正数时该值才可以为负数。
System.ArgumentOutOfRangeException 任何参数超出范围时均会抛出此异常。