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

11 lines
265 B
Smalltalk

accessing
splitByDays
| response spans |
response := OrderedDictionary new.
self timeSpansByDays doWithIndex: [ :span :i |
response
at: span asDate asString
put: (self select: [ :message | span includes: (message created asDateAndTime)])
].
^ response