goog.date.DateRange
Classgoog.date.DateRange(startDate, endDate)
Constructs a date range.
startDate
{goog.date.Date
}
endDate
{goog.date.Date
}
goog.date.DateRange.Iterator
ClassCreates an iterator over the dates in a {@link goog.date.DateRange}. … more
.MAXIMUM_DATE
{goog.date.Date
}The last possible day, as far as this class is concerned.
.MINIMUM_DATE
{goog.date.Date
}The first possible day, as far as this class is concerned.
goog.date.DateRange.StandardDateRangeKeys
EnumStandard date range keys. Equivalent to the enum IDs in DateRange.java http://go/datarange.java … more
.allTime(opt_today)
Returns the range that includes all days between January 1, 1900 and December 31, 9999.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.equals(a, b)
Tests two {@link goog.date.DateRange} objects for equality.
a
{goog.date.DateRange
}
b
{goog.date.DateRange
}
boolean
}
.getEndDate()
goog.date.Date
}
.getStartDate()
goog.date.Date
}
.iterator()
goog.iter.Iterator
}
.last7Days(opt_today)
Returns the range that includes the seven days that end yesterday.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.lastBusinessWeek(opt_today)
Returns the range that starts seven days before the Monday on or before today and ends the Friday before today.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.lastMonth(opt_today)
Returns the range that starts the first of last month and ends the last day of last month.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.lastWeek(opt_today)
Returns the seven-day range that ends the day before the first day of the week (see {@link goog.i18n.DateTimeSymbols.FIRSTDAYOFWEEK}) that contains today.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.standardDateRange(dateRangeKey, opt_today)
dateRangeKey
{string
}
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.thisMonth(opt_today)
Returns the range that starts the first of this month and ends the last day of this month.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.thisWeek(opt_today)
Returns the seven-day range that starts on the first day of the week (see {@link goog.i18n.DateTimeSymbols.FIRSTDAYOFWEEK}) on or before today.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.today(opt_today)
Returns the range from today to today.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}
.yesterday(opt_today)
Returns the range from yesterday to yesterday.
opt_today
{goog.date.Date
=}
goog.date.DateRange
}