【文件属性】:
文件名称:date-utils:与日期相关的实用程序的集合
文件大小:670KB
文件格式:ZIP
更新时间:2021-05-02 04:56:54
date utils JavaScript
日期效用
与日期相关的实用程序的集合。
tl; dr
通过执行npm install @wojtekmaj/date-utils或yarn add @wojtekmaj/date-utils 。
通过import * as dateUtils from '@wojtekmaj/date-utils'添加import * as dateUtils from '@wojtekmaj/date-utils' 。
用它做东西! const now = new Date ( ) ;
const startOfCentury = getCenturyStart ( now ) ;
用户指南
一般吸气剂
getYear()
从给定日期获取年份。
样品用法
import { getYear } from '@wojtekmaj/date-utils' ;
getYear ( new Date (
【文件预览】:
date-utils-master
----.eslintrc.json(82B)
----.gitignore(119B)
----.babelrc(150B)
----package.json(1KB)
----src()
--------index.js(9KB)
--------index.spec.js(24KB)
----LICENSE(1KB)
----.github()
--------FUNDING.yml(18B)
--------workflows()
----README.md(13KB)
----.eslintignore(10B)
----.yarnrc.yml(66B)
----.gitattributes(378B)
----.yarn()
--------releases()
----yarn.lock(254KB)