16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 12:49:18 +02:00

support for config-specified day of the year

This commit is contained in:
tmj-fstate
2017-02-18 18:15:39 +01:00
parent 013a6f0559
commit a1942ce771
6 changed files with 33 additions and 16 deletions

2
sun.h
View File

@@ -54,6 +54,8 @@ protected:
void irradiance();
// calculates day of year from given date
int yearday( int Day, int const Month, int const Year );
// calculates day and month from given day of year
void daymonth( WORD &Day, WORD &Month, WORD const Year, WORD const Yearday );
// obtains current time for calculations
void time( SYSTEMTIME *Time );