Home
last modified time | relevance | path

Searched refs:localtime (Results 1 – 2 of 2) sorted by relevance

/loramac-node-3.4.0/src/system/
Dsystime.c172 uint32_t SysTimeMkTime( const struct tm* localtime ) in SysTimeMkTime() argument
176 uint32_t year = localtime->tm_year - UNIX_YEAR; in SysTimeMkTime()
187 nbdays += ( DIVC_BY_2( ( localtime->tm_mon ) * ( 30 + 31 ) ) - in SysTimeMkTime()
188 ( ( ( correctionMonth[year % 4] >> ( ( localtime->tm_mon ) * 2 ) ) & 0x03 ) ) ); in SysTimeMkTime()
190 nbdays += ( localtime->tm_mday - 1 ); in SysTimeMkTime()
195 nbsecs += ( ( uint32_t )localtime->tm_sec + in SysTimeMkTime()
196 ( ( uint32_t )localtime->tm_min * TM_SECONDS_IN_1MINUTE ) + in SysTimeMkTime()
197 ( ( uint32_t )localtime->tm_hour * TM_SECONDS_IN_1HOUR ) ); in SysTimeMkTime()
203 void SysTimeLocalTime( const uint32_t timestamp, struct tm *localtime ) in SysTimeLocalTime() argument
223 localtime->tm_sec = ( uint8_t )divReminder; in SysTimeLocalTime()
[all …]
Dsystime.h155 uint32_t SysTimeMkTime( const struct tm* localtime );
164 void SysTimeLocalTime( const uint32_t timestamp, struct tm *localtime );