@progress/kendo-angular-schematics
Version:
Kendo UI Schematics for Angular
34 lines (30 loc) • 1.78 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
// The following source code is copied from https://github.com/d3/d3-time
// Copyright 2010-2022 Mike Bostock
// Permission to use, copy, modify, and/or distribute this software for any purpose
// with or without fee is hereby granted, provided that the above copyright notice
// and this permission notice appear in all copies.
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
// OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
// TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
// THIS SOFTWARE.
const durationSecond = 1000;
module.exports.durationSecond = durationSecond;
const durationMinute = durationSecond * 60;
module.exports.durationMinute = durationMinute;
const durationHour = durationMinute * 60;
module.exports.durationHour = durationHour;
const durationDay = durationHour * 24;
module.exports.durationDay = durationDay;
const durationWeek = durationDay * 7;
module.exports.durationWeek = durationWeek;
const durationMonth = durationDay * 30;
module.exports.durationMonth = durationMonth;
const durationYear = durationDay * 365;
module.exports.durationYear = durationYear;