DateBounds

DateBounds[{date1,date2,}]

gives the earliest and latest of the datei.

DateBounds[tseries]

gives the first and last dates in the time series tseries.

DateBounds[bin]

gives the first and last time stamps in the databin bin.

DateBounds[interval]

gives the start and end dates of the date interval interval.

DateBounds[interval,gran]

gives the endpoints of interval in the specified granularity gran.

Details

Examples

open allclose all

Basic Examples  (4)

Find the first and last dates in a list of date objects:

Find the first and last dates in a list of dates in different forms:

Find the temporal bounds of a TimeSeries:

Find the temporal bounds of a Databin:

Scope  (1)

If only one date is given in the input, it will be returned as the first and last date:

Properties & Relations  (5)

DateBounds returns the Min and Max associated with a list of DateObject expressions:

MinMax returns the same results as DateBounds if the input is a list of date objects:

DateBounds[ts] returns the dates corresponding to ts["FirstDate"] and ts["LastDate"]:

These are also the Min and Max values of ts["DateList"]:

DateBounds[bin] returns the dates corresponding to bin["TimeInterval"]:

These are also the Min and Max values of bin["Timestamps"]:

DateBounds accounts for differences in TimeZone when determining the first and last date:

For dates that are not a DateObject, $TimeZone is assumed:

Neat Examples  (1)

Compare the date bounds associated with different databins:

Visualize the overlap between databins using TimelinePlot:

Wolfram Research (2016), DateBounds, Wolfram Language function, https://reference.wolfram.com/language/ref/DateBounds.html (updated 2020).

Text

Wolfram Research (2016), DateBounds, Wolfram Language function, https://reference.wolfram.com/language/ref/DateBounds.html (updated 2020).

CMS

Wolfram Language. 2016. "DateBounds." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/DateBounds.html.

APA

Wolfram Language. (2016). DateBounds. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DateBounds.html

BibTeX

@misc{reference.wolfram_2024_datebounds, author="Wolfram Research", title="{DateBounds}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/DateBounds.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_datebounds, organization={Wolfram Research}, title={DateBounds}, year={2020}, url={https://reference.wolfram.com/language/ref/DateBounds.html}, note=[Accessed: 21-November-2024 ]}