Tag Info

New answers tagged

0

According to the Mathematica 10.2 documentation, this is built in since version 6. but I think that this was introduced not too long ago: In[1]:= d=AbsoluteTime@DateList[{"17/04/2012", {"Day", "/", "Month", "/", "Year"}}] Out[1]= 3 543 609 600 In[2]:= DateString[d, "Week"] Out[2]= 16 And we also have In[3]:= DateString[d, "ISOWeekDate"] Out[3]= ...


9

TimeObject can take a DateObject so: datetime = DateObject[] time = TimeObject[datetime]


4

Since the FullForm of a DateObject looks like this: DateObject[List[2015,8,27],TimeObject[List[17,58,23.456762],Rule[TimeZone,-5.]],Rule[TimeZone,-5.]] we can use Cases: now = DateObject[] Cases[now, TimeObject[__]][[1]] Or even simpler: now[[2]]


8

FinancialData["AustraliaASX", "Members"] and DateListPlot[ FinancialData["AX:CBA", "Volume", {{2000, 1, 1}, {2000, 4, 1}}], Filling -> Axis] You can get the names of all available exchanges with FinancialData["Exchanges"]


1

something like With[{DatePlus = Function[Null, Take[DatePlus[##], 3]]}, stuff; DatePlus[2] ]



Top 50 recent answers are included