1.2.0 • Published 3 years ago
@billogram/moment v1.2.0
@billogram/moment
Functions for converting between timestamps and Moment objects
Install
yarn add @billogram/moment
Usage
import {
convertToTimestamp,
toMoment,
toTimestamp,
} from '@billogram/moment';
convertToTimestamp
convertToTimestamp(str);
toMoment
toMoment(timestamp);
toTimestamp
toTimestamp(momentObj);
Note
This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.
License
MIT