@@ -39,48 +39,56 @@ const months1: Integer = duration1.months
39
39
const days1 : Integer = duration1 . days
40
40
const seconds1 : Integer = duration1 . seconds
41
41
const nanoseconds1 : Integer = duration1 . nanoseconds
42
+ const durationIsInstance1 : boolean = duration1 instanceof Duration
42
43
43
44
const duration2 : Duration < number > = new Duration ( 1 , 1 , 1 , 1 )
44
45
const months2 : number = duration2 . months
45
46
const days2 : number = duration2 . days
46
47
const seconds2 : number = duration2 . seconds
47
48
const nanoseconds2 : number = duration2 . nanoseconds
49
+ const durationIsInstance2 : boolean = duration2 instanceof Duration
48
50
49
51
const localTime1 : LocalTime = new LocalTime ( int ( 1 ) , int ( 1 ) , int ( 1 ) , int ( 1 ) )
50
52
const localTime1Hour1 : Integer = localTime1 . hour
51
53
const localTime1Minute1 : Integer = localTime1 . minute
52
54
const localTime1Second1 : Integer = localTime1 . second
53
55
const localTime1Nanosecond1 : Integer = localTime1 . nanosecond
56
+ const localTimeIsInstance1 : boolean = localTime1 instanceof LocalTime
54
57
55
58
const localTime2 : LocalTime < number > = new LocalTime ( 1 , 1 , 1 , 1 )
56
59
const localTime2Hour1 : number = localTime2 . hour
57
60
const localTime2Minute1 : number = localTime2 . minute
58
61
const localTime2Second1 : number = localTime2 . second
59
62
const localTime2Nanosecond1 : number = localTime2 . nanosecond
63
+ const localTimeIsInstance2 : boolean = localTime2 instanceof LocalTime
60
64
61
65
const time1 : Time = new Time ( int ( 1 ) , int ( 1 ) , int ( 1 ) , int ( 1 ) , int ( 1 ) )
62
66
const offset1 : Integer = time1 . timeZoneOffsetSeconds
63
67
const hour1 : Integer = time1 . hour
64
68
const minute1 : Integer = time1 . minute
65
69
const second1 : Integer = time1 . second
66
70
const nanosecond1 : Integer = time1 . nanosecond
71
+ const timeIsInstance1 : boolean = time1 instanceof Time
67
72
68
73
const time2 : Time < number > = new Time ( 1 , 1 , 1 , 1 , 1 )
69
74
const offset2 : number = time2 . timeZoneOffsetSeconds
70
75
const hour2 : number = time2 . hour
71
76
const minute2 : number = time2 . minute
72
77
const second2 : number = time2 . second
73
78
const nanosecond2 : number = time2 . nanosecond
79
+ const timeIsInstance2 : boolean = time2 instanceof Time
74
80
75
81
const date1 : Date = new Date ( int ( 1 ) , int ( 1 ) , int ( 1 ) )
76
82
const date1Year1 : Integer = date1 . year
77
83
const date1Month1 : Integer = date1 . month
78
84
const date1Day1 : Integer = date1 . day
85
+ const dateIsInstance1 : boolean = date1 instanceof Date
79
86
80
87
const date2 : Date < number > = new Date ( 1 , 1 , 1 )
81
88
const date2Year1 : number = date2 . year
82
89
const date2Month1 : number = date2 . month
83
90
const date2Day1 : number = date2 . day
91
+ const dateIsInstance2 : boolean = date2 instanceof Date
84
92
85
93
const localDateTime1 : LocalDateTime = new LocalDateTime (
86
94
int ( 1 ) ,
@@ -98,6 +106,8 @@ const hour3: Integer = localDateTime1.hour
98
106
const minute3 : Integer = localDateTime1 . minute
99
107
const second3 : Integer = localDateTime1 . second
100
108
const nanosecond3 : Integer = localDateTime1 . nanosecond
109
+ const localDateTimeIsInstance1 : boolean =
110
+ localDateTime1 instanceof LocalDateTime
101
111
102
112
const localDateTime2 : LocalDateTime < number > = new LocalDateTime (
103
113
1 ,
@@ -115,6 +125,8 @@ const hour4: number = localDateTime2.hour
115
125
const minute4 : number = localDateTime2 . minute
116
126
const second4 : number = localDateTime2 . second
117
127
const nanosecond4 : number = localDateTime2 . nanosecond
128
+ const localDateTimeIsInstance2 : boolean =
129
+ localDateTime2 instanceof LocalDateTime
118
130
119
131
const dateTime1 : DateTime = new DateTime (
120
132
int ( 1 ) ,
@@ -136,6 +148,7 @@ const hour5: Integer = dateTime1.hour
136
148
const minute5 : Integer = dateTime1 . minute
137
149
const second5 : Integer = dateTime1 . second
138
150
const nanosecond5 : Integer = dateTime1 . nanosecond
151
+ const dateTimeIsInstance1 : boolean = dateTime1 instanceof DateTime
139
152
140
153
const dateTime2 : DateTime < number > = new DateTime (
141
154
1 ,
@@ -157,6 +170,7 @@ const hour6: number = dateTime2.hour
157
170
const minute6 : number = dateTime2 . minute
158
171
const second6 : number = dateTime2 . second
159
172
const nanosecond6 : number = dateTime2 . nanosecond
173
+ const dateTimeIsInstance2 : boolean = dateTime2 instanceof DateTime
160
174
161
175
const dateTime3 : DateTime = new DateTime (
162
176
int ( 1 ) ,
@@ -178,6 +192,7 @@ const hour7: Integer = dateTime3.hour
178
192
const minute7 : Integer = dateTime3 . minute
179
193
const second7 : Integer = dateTime3 . second
180
194
const nanosecond7 : Integer = dateTime3 . nanosecond
195
+ const dateTimeIsInstance3 : boolean = dateTime3 instanceof DateTime
181
196
182
197
const dateTime4 : DateTime < number > = new DateTime (
183
198
1 ,
@@ -199,6 +214,7 @@ const hour8: number = dateTime4.hour
199
214
const minute8 : number = dateTime4 . minute
200
215
const second8 : number = dateTime4 . second
201
216
const nanosecond8 : number = dateTime4 . nanosecond
217
+ const dateTimeIsInstance4 : boolean = dateTime4 instanceof DateTime
202
218
203
219
const isDurationValue : boolean = isDuration ( duration1 )
204
220
const isLocalTimeValue : boolean = isLocalTime ( localTime1 )
0 commit comments