Skip to content

Add number of months instead of weeks if they exceed a certain amount#21

Open
sebastianmueller wants to merge 1 commit intodesktop-dart:masterfrom
sebastianmueller:master
Open

Add number of months instead of weeks if they exceed a certain amount#21
sebastianmueller wants to merge 1 commit intodesktop-dart:masterfrom
sebastianmueller:master

Conversation

@sebastianmueller
Copy link
Copy Markdown

  • default is 2 months as until that a timespan in weeks is sufficient (totally based on my personal gut feeling)
  • calculates with a rough average of 365 / 12 = 30.42 days per month

* default is 2 months as until that a timespan in weeks is sufficient (totally based on my personal gut feeling)
* calculates with a rough average of 365 / 12 = 30.42 days per month
@Silfalion
Copy link
Copy Markdown

We could use DateUtils.monthDelta + the printDuration of the difference between the endDate and the beginning of the month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants