micro-strptime

0.2.3 • Public • Published

micro-strptime.js

https://github.com/cho45/micro-strptime.js

Micro strptime implementation on JavaScript.

SYNOPSYS

var strptime = require('micro-strptime').strptime;
strptime('05/May/2012:09:00:00 +0900', '%d/%B/%Y:%H:%M:%S %Z');

FORMAT DESCRIPTERS

Current supported format descripters:

  • %% : %
  • %a : abbreviated name of day of week (just ignored)
  • %A : name of day of week (just ignored)
  • %b : abbreviated name of month
  • %B : name of month
  • %Y : four digits full year
  • %m : month
  • %d : date
  • %H : hour
  • %M : minute
  • %S : second
  • %s : milli second
  • %z : timezone string like +0900 or -0300
  • %Z : timezone string like '+09:00', '-03:00', 'Z' or 'UTC'.
  • %I : hour (12-hour colock)
  • %p : AM or PM

LICENSE

MIT: http://cho45.github.com/mit-license

Readme

Keywords

Package Sidebar

Install

npm i micro-strptime

Weekly Downloads

535

Version

0.2.3

License

MIT

Unpacked Size

7.91 kB

Total Files

5

Last publish

Collaborators

  • cho45