Creating tweets collectioin splits by number and Refactoring Timespan extensions.

This commit is contained in:
ruidajo 2022-06-21 08:40:44 -05:00
parent 7da6f87daf
commit 4d439283b1
5 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,5 @@
*Socialmetrica
asDates
^ {self start.
(self start + self duration)}

View File

@ -0,0 +1,3 @@
{
"name" : "Timespan"
}

View File

@ -0,0 +1,11 @@
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