/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
base/sunrise_sunset.hpp
22 строки
579 B
Sergey Yershov
Remove using std from base
28 дек 2016, 15:24
28 дек 2016, 15:24
20c0eb7
Код
Авторство
О чём код?
#pragma once #include <ctime> #include <string> enum class DayTimeType { Day, Night, PolarDay, PolarNight }; std::string DebugPrint(DayTimeType type); /// Helpers which calculates 'is day time' without a time calculation error. /// @param timeUtc - utc time /// @param latitude - latutude, -90...+90 degrees /// @param longitude - longitude, -180...+180 degrees /// @returns day time type for a specified date for a specified location /// @note throws RootException if gmtime returns nullptr DayTimeType GetDayTime(time_t timeUtc, double latitude, double longitude);