29 lines
422 B
C++
29 lines
422 B
C++
/*
|
|
* Copyright (c) by BlackMark 2017
|
|
* Date 17/12/2016
|
|
* Version 1.0
|
|
*/
|
|
|
|
#ifndef SYSTIME_H
|
|
#define SYSTIME_H
|
|
|
|
#include <time.h>
|
|
|
|
#include "twi.h"
|
|
#include "rtc.h"
|
|
|
|
class SysTime
|
|
{
|
|
private:
|
|
static int euDST( const time_t *pTime, int32_t *pZ );
|
|
|
|
public:
|
|
static bool init();
|
|
static void syncSysTime();
|
|
static bool checkSync();
|
|
static void tick();
|
|
static tm getTime();
|
|
static void setTime( const tm &sTime );
|
|
};
|
|
|
|
#endif |