Socket
Book a DemoInstallSign in
Socket

js-date-time-helper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

js-date-time-helper

the library will help convert date time into various format

unpublished
latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

date-time-helper

Usage

Node environment

Install
npm install js-date-time-helper
Usage
import { DateTimeHelper } from "js-date-time-helper";
console.log(DateTimeHelper.getTodayYearMonthData());

Browser environment

Add this script in the body of html.

<script src="https://www.unpkg.com/js-date-time-helper@version/out/date-time-helper.js"></script>

Use this way in js files.

Dispatch.DateTimeHelper.getTodayYearMonthData()

Available methods

getTodayYearMonthData
Format: 2021-09-27
getThisWeekRange
Format [ 'Sep 26, 2021', 'Oct 02, 2021' ]
getMonthDateYearBeutify
Input: Date
Output: Sep 27, 2021
getMonthFromNumber
Input: 1
Output: Jan
getBrowserTimeZoneOffset
Output: "+06:00:00"
getHourMinuteSecondFromSeconds
Input: 3670
Output: "01:01:10"

Input: 259635
Output: "72:07:15"
getHourMinuteFromMin
Input: 259635
Output: "4327 Hours 15 Mins"

Input: 1256
Output: "20 Hours 56 Mins"

Keywords

date

FAQs

Package last updated on 27 Sep 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.