Socialmetrica/Socialmetrica.package/TweetsCollection.class/instance/splitByDays.st

11 lines
265 B
Smalltalk
Raw Normal View History

accessing
splitByDays
| response spans |
2022-06-17 23:11:07 +00:00
response := OrderedDictionary new.
self timeSpansByDays doWithIndex: [ :span :i |
response
at: span asDate asString
put: (self select: [ :message | span includes: (message created asDateAndTime)])
].
^ response