You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Converts the time to an ISO 8601 formatted string. */
181
-
toString(){
181
+
toString(): string{
182
182
returntimeToString(this);
183
183
}
184
184
185
185
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */
186
-
compare(b: AnyTime){
186
+
compare(b: AnyTime): number{
187
187
returncompareTime(this,b);
188
188
}
189
189
}
@@ -361,45 +361,45 @@ export class ZonedDateTime {
361
361
}
362
362
363
363
/** Returns a new `ZonedDateTime` with the given duration added to it. */
364
-
add(duration: DateTimeDuration){
364
+
add(duration: DateTimeDuration): ZonedDateTime{
365
365
returnaddZoned(this,duration);
366
366
}
367
367
368
368
/** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
/** Converts the date to a native JavaScript Date object. */
387
-
toDate(){
387
+
toDate(): Date{
388
388
returnzonedToDate(this);
389
389
}
390
390
391
391
/** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
392
-
toString(){
392
+
toString(): string{
393
393
returnzonedDateTimeToString(this);
394
394
}
395
395
396
396
/** Converts the date to an ISO 8601 formatted string in UTC. */
397
-
toAbsoluteString(){
397
+
toAbsoluteString(): string{
398
398
returnthis.toDate().toISOString();
399
399
}
400
400
401
401
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
0 commit comments