Time::getDayOfYear()


#1

As the title says, can you add these 2 liners:

// In Time.cpp
int Time::getDayOfWeek() const noexcept     { return TimeHelpers::millisToLocal (millisSinceEpoch).tm_wday; }
+int Time::getDayOfYear() const noexcept     { return TimeHelpers::millisToLocal (millisSinceEpoch).tm_yday; }

// In Time.h
    /** Returns the number of the day of the week.

        The value returned is in the range 0 to 6 (0 = sunday, 1 = monday, etc).
    */
    int getDayOfWeek() const noexcept;

+    /** Returns the number of the day of the year.
+
+            The value returned is in the range 0 to 365.
+	*/
+	int getDayOfYear() const noexcept;

Thanks.


#2

Thanks, good suggestion!