我正在尝试用DateListPlot
. 我想为它提供一个从 SQL 数据库获得的时间序列。当我检索时间序列时,列表由不理解的SQLDateTime
条目组成。DateListPlot
In[24]:= t=SQLExecute[conn, "select timestamp,value from timeseries order by timestamp asc"]
Out[24]={{SQLDateTime[{2010,1,1}],12.3},{SQLDateTime[{2010,1,2}],12.51}}
不起作用:
In[25]:= DateListPlot[t]
DateListPlot
需要一个日期元组并且不理解 SQLDateTime。我能做些什么?