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
|
accessing
|
||||||
timeSpansByDays
|
timeSpansByDays
|
||||||
|
|
||||||
^ (Timespan starting: self oldest created ending: self newest created)
|
^ self timeSpan dates asOrderedCollection collect: [ :date | Timespan starting: date ending: date + 24 hours]
|
||||||
dates asOrderedCollection collect: [ :date | Timespan starting: date ending: date + 24 hours]
|
|
@ -1,5 +1,4 @@
|
|||||||
accessing
|
accessing
|
||||||
timeSpansByWeeks
|
timeSpansByWeeks
|
||||||
|
|
||||||
^ (Timespan starting: self oldest created ending: self newest created)
|
^ self timeSpan weeks asOrderedCollection
|
||||||
weeks asOrderedCollection
|
|
Loading…
Reference in New Issue
Block a user