2022-04-15 12:36:53 +00:00
|
|
|
*Socialmetrica
|
|
|
|
periodsSince: startingDate until: endingDate
|
2022-04-15 13:49:20 +00:00
|
|
|
| borders subperiodDuration |
|
2022-04-15 12:36:53 +00:00
|
|
|
subperiodDuration := (endingDate - startingDate) / self.
|
2022-04-15 13:49:20 +00:00
|
|
|
borders := OrderedCollection new.
|
|
|
|
borders add: startingDate.
|
2022-04-15 12:36:53 +00:00
|
|
|
1 to: self do: [ :i | | ending |
|
|
|
|
ending := startingDate + (subperiodDuration * i).
|
2022-04-15 13:49:20 +00:00
|
|
|
borders add: ending.
|
2022-04-15 12:36:53 +00:00
|
|
|
].
|
2022-04-15 13:49:20 +00:00
|
|
|
^ borders
|