m4dz / clocker.js

A simple function to parse SMIL clock times

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Clocker.js#

A lightweight tool to convert timeclock values from SMIL format to milliseconds.

By:

MAD - ecrire [at] madsgraphics [dot] com

Follow: @madsgraphics on Twitter for more updates.

##Use##

Simply use to window.clocker method to get the time in ms :

var time = clocker('2:30.5');

Any forks and stuff are welcome =].

##Changelog##

0.1

  • First release.

##License##

All of the Clocker.js specific code is under the WTFPL license. Which means it's also MIT and BSD (or anything you want). However, the inspired works are subject to their own licenses.

About

A simple function to parse SMIL clock times


Languages

Language:JavaScript 100.0%