Merge pull request #3559 from apathytomorrow/master

Added IsDuration to MomentStatic
This commit is contained in:
Masahiro Wakame
2015-02-03 11:42:09 +09:00
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -195,6 +195,10 @@ moment.isMoment();
moment.isMoment(new Date());
moment.isMoment(moment());
moment.isDuration();
moment.isDuration(new Date());
moment.isDuration(moment.duration());
moment.localeData('fr');
moment(1316116057189).fromNow();
+4
View File
@@ -195,6 +195,10 @@ moment.isMoment();
moment.isMoment(new Date());
moment.isMoment(moment());
moment.isDuration();
moment.isDuration(new Date());
moment.isDuration(moment.duration());
moment.localeData('fr');
moment(1316116057189).fromNow();
+2
View File
@@ -399,6 +399,8 @@ declare module moment {
invalid(parsingFlags?: Object): Moment;
isMoment(): boolean;
isMoment(m: any): boolean;
isDuration(): boolean;
isDuration(d: any): boolean;
// Deprecated in 2.8.0.
lang(language?: string): string;