Creating tweets collectioin splits by number and Refactoring Timespan extensions.
This commit is contained in:
parent
7da6f87daf
commit
4d439283b1
@ -0,0 +1,5 @@
|
||||
*Socialmetrica
|
||||
asDates
|
||||
|
||||
^ {self start.
|
||||
(self start + self duration)}
|
3
Socialmetrica.package/Timespan.extension/properties.json
Normal file
3
Socialmetrica.package/Timespan.extension/properties.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"name" : "Timespan"
|
||||
}
|
@ -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
|
Loading…
Reference in New Issue
Block a user