Files
IoTManager/include/Utils/TimeUtils.h
Yuri Trikoz 7c61ff2810 getData
2020-06-25 09:21:42 +03:00

46 lines
815 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <Arduino.h>
#ifdef ESP8266
#include <TZ.h>
#endif
void Time_Init();
/*
* Получение текущего времени
*/
String getTime();
/*
* Получаем время в формате linux gmt
*/
String getTimeUnix();
/*
* Параметр время
* @result результат
*/
boolean getUnixTimeStr(String&);
String getTimeWOsec();
/*
* Получение даты
*/
String getDate();
String getDateDigitalFormated();
int timeToMin(String Time);
const String prettyMillis(unsigned long time_ms = millis());
/*
* Время (мс) прошедщее с @simce
*/
unsigned long millis_since(unsigned long sinse);
/*
* Интерввал времени (мс) между @start и @fimish
*/
unsigned long millis_passed(unsigned long start, unsigned long finish);