Merge pull request #3559 from apathytomorrow/master

Added IsDuration to MomentStatic
This commit is contained in:
Masahiro Wakame committed 2015-02-03 11:42:09 +09:00
commit abb8a27bfd
3 files changed
+10

No files matched your search

+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;