0.0.4 • Published 12 years ago

hero-data v0.0.4

Weekly downloads
13
License
-
Repository
github
Last release
12 years ago

Install

Usage

var hd = require('hero-data');

var nowTime = hd.time.now('numeric', 'DD.MM.YYYY hh:mm:ss');
console.log(nowTime); // Show: "22.05.2012 13:50:39"

Time Module

.now(format,type)

  • type String
  • format String

Get current date and return formated string.

Set format to define return view(e.g. "DD.MM.YYYY hh:mm:ss"). Used Variables: DD - day(2 digits), MM - month(2 digits), YYYY - year(4 digits), hh - hour(2 digits), mm - minute(2 digits), ss - seconds(2 digits). Set type to define numerical or words form(numeric).

Example

var nowTime = hd.time.now('numeric', 'DD.MM.YYYY hh:mm:ss');
console.log(nowTime); // Show: "22.05.2012 13:50:39"
0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago