exside / strftime.js

ruby's strftime date formatting implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strftime.js

Ruby-like strftime method implementation in Javascript without the percentage notation.

The formatting is based on strftime.org

Example

console.log(strftime('H:M p - A')) // 21:32 AM - Thursday
console.log(strftime('m/b/Y')) // 1/Jan/2018
console.log(strtime('do B Y')) // 18th January 2018

About

ruby's strftime date formatting implementation


Languages

Language:JavaScript 100.0%