timrwood/moment — Issue #143: Formatted diffs
Author: hsablonniere
Created: 2012-01-23 21:51:45+00:00
State: open

Hi,

Is there a way to easily format a diff between to dates ?

I would like to do for example :

```
var a = moment([2011, 11, 25, 11, 00]);
var b = moment([2011, 11, 25, 12, 30]);
console.log(b.diff(a, 'H\\hmm\\m\\i\\n'));
```

and have `1h30min` in the console...

Do you think that kind of matter should handled by moment ? Would you like me to work on a PR ?

Cheers.