Convert.js

Star

Time


Usage
convert.Time(data, source, target)

Parameters:
Data => Value to be converted
Source => Current unit
Target => Output unit

Source / Target Units:
  • century => Century
  • minute => Minute
  • day => Day
  • week => Week
  • millisecond => Milliseconds
  • hour => Hour
  • second => Second
  • year => Year

Examples: