Socket
Book a DemoInstallSign in
Socket

chen-getdate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chen-getdate

``` $npm install chen-getdate ``` ## 介绍 这是一个把时间对象转化为日期的函数,取默认的date字段如果不满意 还可以自己重新拼成自己想要的字段 ## 例子 ``` import getdate from 'chen-getdate'

1.0.1
latest
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

chen-getdate.js

安装

$npm install chen-getdate

介绍

这是一个把时间对象转化为日期的函数,取默认的date字段如果不满意 还可以自己重新拼成自己想要的字段

例子

import getdate from 'chen-getdate'


let date = getdate()

date = {
	D: 31
	M: 9
	Y: 2018
	date: "2018-9-31  17:25:22"
	h: 17
	m: 25
	s: 22
	stamp: 1540977922531
}

FAQs

Package last updated on 31 Oct 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

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.