Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

js-date-time-helper

the library will help convert date time into various format

  • 2.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc