以下代码的第 2 行:
dates = Interval[DateObject[{2019, 7, 5}],DateObject[{2019, 7, 7}]]
Map[Function[d,DateValue[d,"DayNameShort"]],dates]
产量:
Interval[Fri,Sun]
...但我想给:
{Fri,Sat,Sun}
...我怎样才能在间隔内每天“剥离”(不是毫秒!)?
以下代码的第 2 行:
dates = Interval[DateObject[{2019, 7, 5}],DateObject[{2019, 7, 7}]]
Map[Function[d,DateValue[d,"DayNameShort"]],dates]
产量:
Interval[Fri,Sun]
...但我想给:
{Fri,Sat,Sun}
...我怎样才能在间隔内每天“剥离”(不是毫秒!)?