A JavaScript port of Doug Lea's TimeUnit class for Java.