1.1.3 • Published 5 years ago

simple-datetime-formater v1.1.3

Weekly downloads
27
License
ISC
Repository
github
Last release
5 years ago

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 = require("simple-datetime-formater"

simpleDateTimeFormater.formatDate(timestamp)

Format Time:

const simpleDatetimeFormater = require("simple-datetime-formater"

simpleDateTimeFormater.formatTime(timestamp)

timestamp or ISO time string parameter is optional. You can use it when necessary.

timeago

const simpleDatetimeFormater = require("simple-datetime-formater"

simpleDateTimeFormater.formatTimeAgo(timestamp)

to use this package over in the frontend here is the cdn:

<script src="https://cdn.jsdelivr.net/gh/rexeze/formatTimeStamp/src/index.min.js"></script>

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.

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago