Нахождение даты оценки данных
Найдите первую и последнюю даты в TimeSeries.
In[1]:=
![Click for copyable input](assets.ru/find-the-date-bounds-of-data/In_25.png)
ts = EarthquakeData[All, 8, {{2010, 1, 1}, {2015, 5, 16}},
"Magnitude"]
Out[1]=
![](assets.ru/find-the-date-bounds-of-data/O_25.png)
In[2]:=
![Click for copyable input](assets.ru/find-the-date-bounds-of-data/In_26.png)
DateBounds[ts]
Out[2]=
![](assets.ru/find-the-date-bounds-of-data/O_26.png)
Получите первую и последнюю дату из списка дат в различных форматах.
In[3]:=
![Click for copyable input](assets.ru/find-the-date-bounds-of-data/In_27.png)
DateBounds[{DateObject[{2015}], "1950 Jan 4th",
3667285330, {2017, 1, 1}}]
Out[3]=
![](assets.ru/find-the-date-bounds-of-data/O_27.png)
Используйте DateBounds для получения первой и последней метки времени, которая ассоциируется с Databin.
In[4]:=
![Click for copyable input](assets.ru/find-the-date-bounds-of-data/In_28.png)
DateBounds[Databin["1qGFQ8v"]]
Out[4]=
![](assets.ru/find-the-date-bounds-of-data/O_28.png)
Сравните даты оценки, связанные с местом хранения информации.
In[5]:=
![Click for copyable input](assets.ru/find-the-date-bounds-of-data/In_29.png)
binnames = { "2akVuNN2", "2anlZF8U", "2anHvIz1"};
In[6]:=
![Click for copyable input](assets.ru/find-the-date-bounds-of-data/In_30.png)
DateBounds[Databin[#]] & /@ binnames
Out[6]=
![](assets.ru/find-the-date-bounds-of-data/O_29.png)
Визуализируйте перекрытие между местами хранения, используя TimelinePlot.
код на языке Wolfram Language целиком
Out[7]=
![](assets.ru/find-the-date-bounds-of-data/O_30.png)