Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
dateformater-tc
Advanced tools
帮助你把日期格式化为想要的中文格式
使用的是所有对于 原生 Date
对象合法的参数
MM
, dd
, HH
, mm
, ss
, qq
: 当生成的输出是一位数的时候,会加入前置的0,例如,2
=>02
,反之M
, d
, H
, m
, s
, q
则不会
yyyy
:返回四位数的年份,yy
返回年份的后两位
import dateFormater from 'dateformater-tc'
(dateFormater()).format('yyyy年MM月dd日 HH时mm分ss秒.S 第qq季度 第D天 F')
// 2016年06月09日 16时34分43秒.601 第02季度 第161天 星期四
(dateFormater(2016,1,1)).format('yyyy年MM月dd日 HH时mm分ss秒.S 第qq季度 第D天 F')
// "2016年02月01日 00时00分00秒.0 第01季度 第32天 星期一"
FAQs
The npm package dateformater-tc receives a total of 0 weekly downloads. As such, dateformater-tc popularity was classified as not popular.
We found that dateformater-tc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.