@aws-amplify/core
Version:
Core category of aws-amplify
16 lines (14 loc) • 533 B
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.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);
export { getSkewCorrectedDate };
//# sourceMappingURL=getSkewCorrectedDate.mjs.map