1.0.8 • Published 2 years ago
time-conver v1.0.8
Installing
You can do it on terminal
npm i time-conver
If you use yarn
yarn add time-conver
🎈 Usage
You can get the current time in this view
import time_conver from "time-conver";
const time = new Date();
console.log(time_conver.createdAt(time)); // Just posted
if you have some time before then you can use it like this
import time_conver from "time-conver";
console.log(time_conver.createdAt("2023-05-14T12:50:50.104Z")); // Posted 2 minutes ago
// and you can use any time format with it
console.log(
time_conver.createdAt(
"Sun May 14 2023 17:52:42 GMT+0500 (Uzbekistan Standard Time)"
)
); // Posted 2 minutes ago
// the result will be the same
✍️ Author
- @davronkhamdamov - Idea & Initial work