Does directory exist / create directory
All posts by
Debug DateTime
Debug tm Debug time_t
Comparing date and time
Compare tm’s or with strptime() check Get time difference in seconds
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:
Converting DateTime
Converting struct tm to time_t Convert UTC string to tm
Modifying Date and Time
Adjusting tm Adjusting time_t
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 […]
.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.
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:
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 […]