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

11 lines
306 B
Smalltalk

accessing
splitBytimeSpansOf: integerDivisions
| borders response |
response := OrderedDictionary new.
(self timeSpansOf: integerDivisions) doWithIndex: [ :span :i |
response
at: span asDatesString
put: (self select: [ :message | span includes: (message created asDateAndTime)])
].
^ response