How to use the timezonecomplete.zone function in timezonecomplete

To help you get started, we’ve selected a few timezonecomplete examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MoveOnOrg / Spoke / src / lib / dst-helper.js View on Github external
1,
        0,
        0,
        0,
        0,
        zone(timezone)
      );
      const julyDate = new DateTime(
        new Date().getFullYear(),
        6,
        1,
        0,
        0,
        0,
        0,
        zone(timezone)
      );
      _timezoneOffsetAndDst[timezone] = new TimezoneOffsetAndDst(
        Math.min(januaryDate.offset(), julyDate.offset()),
        januaryDate.offset() !== julyDate.offset()
      );
    }
  }

timezonecomplete

DateTime, TimeZone, Duration and Period library aimed at providing a consistent and complete date-time interface, away from the original JavaScript Date class.

MIT
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis