struct tm

Struct tm Note:tm_year is years since 1900!!tm_month is months since January (0-11)!!Note when converting to time_t your year must be >= 1970 as time_t is usually based from 00:00, Jan 1 1970 UTC! Copy struct tm You can just use a normal equals:

Read More

UTC

UTC is the DateTime displayed in the following format: Convert UTC char string to tm and tm to a UTC formatted char string Note, strftime() returns the total number of characters written (not including the terminating null-character), or zero on error. To get a pointer to the next character in the char string being written […]

Read More

.DateTime General

Basics A time_t object is a raw system time value (typically seconds since 00:00, Jan 1 1970 UTC) A struct tm lets you work with days, hours, mins etc.

Read More

Special characters

Degree symbol Typically you can use ALT+176 for the ° character. In an ASCII C string its an extended character, but you can include it using the hex code for it:

Read More

fatal error: ###.h: No such file or directory

E.g: fatal error: #####/#######.h: No such file or directory Your CMakeLists.txt has a REQUIRES section? This example is specific to the Espressif ESP-IDF, may be different for other SDKs If you don’t have a REQUIRES list in CMakeLists.txt that is declaring dependencies on certain special components, you don’t have to add basic components as REQUIRES […]

Read More