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

gldate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gldate

awsome date

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

dateLib is a class extends Date

instanceof Date,and extend properties and methods,you can use as Date;

Tip

gldate Stop maintenance,please goto date-library

Installing

npm install gldate

Using

 const dateLib = require('gldate')
 import dateLib from 'gldate'

doc

document

Property

  • year get or set
  • month get or set
  • week get
  • date get or set 返回当月的第几天
  • day get 返回星期几
  • hours get or set
  • minutes get or set
  • seconds get or set
  • timeStamp get or set

Method

  • format yy MM dd hh mm ss
  • get12Ts 返回从12点开始的秒级时间戳,不会改变原时间
  • add can use as chain
  • isBefore
  • isAfter
  • clone
  • setStart 会改变原时间

static

  • getByOffset 参数同add
  • max
  • min
  • duration 获取一段时间的Date array

Keywords

date

FAQs

Package last updated on 08 Feb 2018

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