moment-tokens:Moment.js的Unix(strftime)和php格式翻译

时间:2021-05-14 11:42:40
【文件属性】:
文件名称:moment-tokens:Moment.js的Unix(strftime)和php格式翻译
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-14 11:42:40
JavaScript 瞬间令牌 一些针对有用的标记翻译,该库为unix样式添加了strftime方法,为PHP格式化标记添加了phpFormat 。 该库仅将代币转换为原始的momentjs令牌。 兼容性 浏览器(在Chrome,Firefox,Opera上测试) Nodejs的 安装方式 实际上,您可以下载原始的moment-tokens.js或克隆此存储库。 在不久的将来,我将为nodejs用户将此软件包添加到npm中。 用法 注意: moment-tokens只是为瞬间添加了一些其他方法。 在浏览器中很简单: [removed][removed] [removed][removed] [removed] console.log(moment().strftime("%m/%d/%y %I:%M %p %Z")); /
【文件预览】:
moment-tokens-master
----README.rst(1KB)
----moment-tokens.js(4KB)
----package.json(897B)
----tests()
--------phpformat.js(4KB)
--------strftime.js(4KB)
----LICENSE(1KB)
----.gitignore(27B)
----Makefile(351B)

网友评论