libmrbesen/inc/doy.h

10 lines
265 B
C
Raw Permalink Normal View History

2020-10-07 13:03:07 +02:00
#pragma once
#include <ctime>
namespace mrbesen::doy {
unsigned int getDOY(bool timezone = false, time_t time = 0); //get the doy of today or specific time, timezone = false -> dont compensate for timezone, true -> compensate for timezone, returns 0 on error
}