0.0.7 • Published 10 years ago

time_format v0.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

a very simple time format function

有时你只是需要很简单的时间格式化,这时momentjs太大了,作为模块依赖或者前端使用都不太合适,这个模块就是为你而生的。

function time_format(time, options)

参数

  • time {Date} 日期对象,可选
  • options {Object} 选项,可选 options.date {Bool} 是否包含日期,默认值为 true options.time {Bool} 是否包含时间,默认值为 true options.zone {Bool} 是否包含时区,默认值为 false

返回值

{String} 格式如 '2015-11-13 21:45:48 +0800'

Usage:

Homepage: https://github.com/bughou-node/time_format

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

1.0.5

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago