Javascript Countdown Remaining/elapsed time library

This is an open-source Javascript Countdown library. Well, not so much a library as a bunch of functions, that help when you want to get and display the remaining time or time elapsed (se note at the bottom).
This might be useful if you want to convert an absolute timestamp to relative time, e.g. how long time has passed, or make a Javascript countdown timer.
Any questions, bugs or commments can be posted at my site.


Everything is contained in the 'remaining' namespace. These are the function declarations:

* Get the difference of the passed date, and now. The different formats of the taget parameter are:
* January 12, 2009 15:14:00     (Month dd, yyyy hh:mm:ss)
* January 12, 2009              (Month dd, yyyy)
* 09,00,12,15,14,00             (yy,mm,dd,hh,mm,ss) Months range from 0-11, not 1-12.
* 09,00,12                      (yy,mm,dd)          Months range from 0-11, not 1-12.
* 500                           (milliseconds)
* 2009-01-12 15:14:00           (yyyy-mm-dd hh-mm-ss)
* 2009-01-12 15:14              (yyyy-mm-dd hh-mm)
* @param target Target date. Can be either a date object or a string (formated like '24 December, 2010 15:00:00')
* @return Difference in seconds
getSeconds: function(target)
* @param seconds Difference in seconds
* @param i18n A language object (see code)
* @param onlyLargestUnit Return only the largest unit (see documentation)
* @param hideEmpty Hide empty units (see documentation)
* @return String formated something like '1 week, 1 hours, 1 second'
getString: function(seconds, i18n, onlyLargestUnit, hideEmpty)
* @param seconds Difference in seconds
* @return String formated something like '169:00:01'
getStringDigital: function(seconds)
* @param seconds Difference in seconds
* @return Array with hours, minutes and seconds
getArray: function(seconds)
* @param number An integer
* @return Integer padded with a 0 if necessary
padNumber: function(number)