1.0.8 • Published 2 years ago

time-conver v1.0.8

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

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

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago