@pierogi.dev/readable_time
v1.0.6
Published
This package makes a date time string of current time or a specific date time string of unix time of an argument.
Downloads
2
Readme
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.