Refactoring tweets collections time spans.
This commit is contained in:
parent
2cec4816a3
commit
7da6f87daf
@ -0,0 +1,4 @@
|
||||
accessing
|
||||
timeSpan
|
||||
|
||||
^ Timespan starting: self oldest created ending: self newest created
|
@ -1,5 +1,4 @@
|
||||
accessing
|
||||
timeSpansByDays
|
||||
|
||||
^ (Timespan starting: self oldest created ending: self newest created)
|
||||
dates asOrderedCollection collect: [ :date | Timespan starting: date ending: date + 24 hours]
|
||||
^ self timeSpan dates asOrderedCollection collect: [ :date | Timespan starting: date ending: date + 24 hours]
|
@ -1,5 +1,4 @@
|
||||
accessing
|
||||
timeSpansByWeeks
|
||||
|
||||
^ (Timespan starting: self oldest created ending: self newest created)
|
||||
weeks asOrderedCollection
|
||||
^ self timeSpan weeks asOrderedCollection
|
Loading…
Reference in New Issue
Block a user