/relative-day-utc

Fast computation of relative dates.

Primary LanguageJavaScriptMIT LicenseMIT

relative-day-utc

Fast computation of relative dates.

Installation

$ npm install relative-day-utc

or

<script src="https://cdn.jsdelivr.net/npm/relative-day-utc@1.2.1"></script>

Usage

const relativeDayUtc = require('relative-day-utc'); // or window.relativeDayUtc
let yesterday = relativeDayUtc(-1);

License

Copyright (c) 2017 - 2020 Martin Kolárik. Released under the MIT license.