UNPKG

@aws-amplify/core

Version:
19 lines (17 loc) 668 B
'use strict'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); exports.getSkewCorrectedDate = void 0; /** * Returns a `Date` that is corrected for clock skew. * * @param systemClockOffset The offset of the system clock in milliseconds. * * @returns `Date` representing the current time adjusted by the system clock offset. * * @internal */ const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); exports.getSkewCorrectedDate = getSkewCorrectedDate; //# sourceMappingURL=getSkewCorrectedDate.js.map