calmjm / tojota

Functions for interacting with Toyota MyT API
Apache License 2.0
73 stars 15 forks source link

Consider the current year and week context #29

Closed CM000n closed 2 years ago

CM000n commented 3 years ago

Consider the current year and week context if no start date is specified.

I currently find it a bit confusing to simply subtract 120, or 365 days from the current date if no start date has been specified for the calculations. Thus the results in calculations sometimes do not refer to the current year, or complete weeks. I would therefore suggest to display only the current week or the current year, if no exact start date was specified.

Greetings Simon