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
// this is a dumbed down version of fromObject() that runs about 60% faster
@@ -477,6 +477,18 @@ function lastOpts(argList) {
477
477
return[opts,args];
478
478
}
479
479
480
+
/**
481
+
* Timestamp to use for cached zone offset guesses (exposed for test)
482
+
*/
483
+
letzoneOffsetTs;
484
+
/**
485
+
* Cache for zone offset guesses (exposed for test).
486
+
*
487
+
* This optimizes quickDT via guessOffsetForZone to avoid repeated calls of
488
+
* zone.offset().
489
+
*/
490
+
letzoneOffsetGuessCache={};
491
+
480
492
/**
481
493
* A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.
482
494
*
@@ -565,22 +577,6 @@ export default class DateTime {
565
577
this.isLuxonDateTime=true;
566
578
}
567
579
568
-
/**
569
-
* Timestamp to use for cached zone offset guesses (exposed for test)
570
-
*
571
-
* @access private
572
-
*/
573
-
static_zoneOffsetTs;
574
-
/**
575
-
* Cache for zone offset guesses (exposed for test).
576
-
*
577
-
* This optimizes quickDT via guessOffsetForZone to avoid repeated calls of
578
-
* zone.offset().
579
-
*
580
-
* @access private
581
-
*/
582
-
static_zoneOffsetGuessCache={};
583
-
584
580
// CONSTRUCT
585
581
586
582
/**
@@ -1045,6 +1041,11 @@ export default class DateTime {
0 commit comments