|
|
@@ -360,6 +360,12 @@ function computeRangeAs(unit, start, end) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// Returns a boolean about whether the given duration has any time parts (hours/minutes/seconds/ms)
|
|
|
+function durationHasTime(dur) {
|
|
|
+ return Boolean(dur.hours() || dur.minutes() || dur.seconds() || dur.milliseconds());
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
function isNativeDate(input) {
|
|
|
return Object.prototype.toString.call(input) === '[object Date]' || input instanceof Date;
|
|
|
}
|