Refactoring tweets collections time spans.

This commit is contained in:
ruidajo 2022-06-20 20:33:53 -05:00
parent 2cec4816a3
commit 7da6f87daf
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,4 @@
accessing
timeSpan
^ Timespan starting: self oldest created ending: self newest created

View File

@ -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]

View File

@ -1,5 +1,4 @@
accessing
timeSpansByWeeks
^ (Timespan starting: self oldest created ending: self newest created)
weeks asOrderedCollection
^ self timeSpan weeks asOrderedCollection