@billogram/moment

Functions for converting between timestamps and Moment objects

Usage no npm install needed!

<script type="module">
  import billogramMoment from 'https://cdn.skypack.dev/@billogram/moment';
</script>

README

@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