New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@myno_21/time

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@myno_21/time

Beginner friendly to use & the simplest way of formatting dates, making timestamps and many more

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

accessibility text

accessibility text

Build Status Codecov License

Time

Simplest way of formatting dates, making timestamps and many more!

Short message

This package has been re-published the old one was deleted, and sadly now the package doesn't contain the "getTimezone" function due to some reasons. Other than that, the package is still the completely updated. Old deprecated methods are removed.

Features 📣

  • Converts localized time to Unix-Epoch timestamps.
  • Converts a Unix-Epoch timestamp to a human readable time.
  • Get the time in a localized format -> "in xyz seconds"/"xyz seconds ago"
  • Get a formatted time.
  • Get the current in a formatted manner with some cool options.
  • Sets a timer for your. With the timer events.
  • Converts seconds to a proper formatted duration.

❔Installation

$ npm install @myno_21/time

Import

// ES6
import * as Time from "@myno_21/time"; // Since the package doesn't provide you a default import. So you have to import everything.
// CJS
const Time = require("@myno_21/time");

Usage

const result = getUnix("4 days");
console.log(result); // --> 1681400820

License

ISC

Keywords

browser

FAQs

Package last updated on 09 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts