A very simple DateTime library to convert timestamp to human readable time.
size: 1.31kb
Something I use all the time and don't want to repeat it all the time.
Usage:
Format Date:
const simpleDatetimeFormater =
Format Time:
const simpleDatetimeFormater =
timestamp
or ISO time string parameter is optional. You can use it when necessary.
timeago
const simpleDatetimeFormater =
to use this package over in the frontend here is the cdn:
In timeago you must put a time stamp or ISO time string.
This package solves my problem for now. I will continue to develop it to something more robust to suit any use case if necessary.