1.0.6 • Published 2 years ago

@pierogi.dev/readable_time v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

About

This package makes a date time string of current time or a specific date time string of unix time of an argument.

Usage

import {currentTimeReadable, unixTimeReadable} from "@pierogi.dev/readable_time";

//This will display a current date time string like 2022-08-01 12:00:00
console.log(currentTimeReadable);

//This will display a specific date time string 2022-08-17 07:44:23
console.log(unixTimeReadable(1660722263));

Note

Both functions return UTC time.
An argument of unixTimeReadable must be on the second timescale, not on the micro second timescale.

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago