icholy / Duration.js

MIT License
185 stars 14 forks source link

add amd module definition pattern #10

Closed sechel closed 8 years ago

sechel commented 8 years ago

Hi nice work, I added amd module definition. By the way, from the Docs, this does not work in Browsers var d = Duration.parse("5h"), now = new Date(), later = new Date(now + d); console.log(later.toString()); need to use Date.now() + d

icholy commented 8 years ago

If you want this merged, please remove the changes in toString.

sechel commented 8 years ago

done, sorry I pulled in this toString extension from somewhere else.