RTC
Dependents: GloboMet GloboMetereologico MPSMAX_copy
RTC.cpp
- Committer:
- DanielOlarte
- Date:
- 2016-11-19
- Revision:
- 0:86951afbcc3f
File content as of revision 0:86951afbcc3f:
#include "RTC.h" int tiempo; int RealTime::setdatetime(int hour, int min, int day, int mon, int year) { struct tm t; t.tm_sec=00; t.tm_min=min; t.tm_hour=hour; t.tm_mday=day; t.tm_mon=mon-1; t.tm_year=year+100; time_t seconds =mktime(&t); tiempo=mktime(&t); return tiempo; wait (1); }