Trouvez les dates limites de données
Trouvez les premières et les dernières dates dans une TimeSeries.
In[1]:=
![Click for copyable input](assets.fr/find-the-date-bounds-of-data/In_25.png)
ts = EarthquakeData[All, 8, {{2010, 1, 1}, {2015, 5, 16}},
"Magnitude"]
Out[1]=
![](assets.fr/find-the-date-bounds-of-data/O_25.png)
In[2]:=
![Click for copyable input](assets.fr/find-the-date-bounds-of-data/In_26.png)
DateBounds[ts]
Out[2]=
![](assets.fr/find-the-date-bounds-of-data/O_26.png)
Obtenez les premières et les dernières dates à partir d'une liste de dates dans des formats différents.
In[3]:=
![Click for copyable input](assets.fr/find-the-date-bounds-of-data/In_27.png)
DateBounds[{DateObject[{2015}], "1950 Jan 4th",
3667285330, {2017, 1, 1}}]
Out[3]=
![](assets.fr/find-the-date-bounds-of-data/O_27.png)
Utilisez DateBounds pour trouver le premier et le dernier horodatage associés à une Databin.
In[4]:=
![Click for copyable input](assets.fr/find-the-date-bounds-of-data/In_28.png)
DateBounds[Databin["1qGFQ8v"]]
Out[4]=
![](assets.fr/find-the-date-bounds-of-data/O_28.png)
Comparez les limites de date associées à différentes archives de données.
In[5]:=
![Click for copyable input](assets.fr/find-the-date-bounds-of-data/In_29.png)
binnames = { "2akVuNN2", "2anlZF8U", "2anHvIz1"};
In[6]:=
![Click for copyable input](assets.fr/find-the-date-bounds-of-data/In_30.png)
DateBounds[Databin[#]] & /@ binnames
Out[6]=
![](assets.fr/find-the-date-bounds-of-data/O_29.png)
Visualisez le chevauchement entre les archives de données en utilisant TimelinePlot.
Afficher l'entrée complète de Wolfram Language
Out[7]=
![](assets.fr/find-the-date-bounds-of-data/O_30.png)