Data Fields |
|
char | year [4] |
char | dash1 |
char | month [2] |
char | dash2 |
char | day [2] |
char | T |
char | hour [2] |
char | colon1 |
char | minute [2] |
char | colon2 |
char | second [2] |
char | timezone |
char | timezone_hour [2] |
char | colon3 |
char | timezone_minute [2] |
char | null_terminator |
Detailed Description
ISO8601 Time Structure as string
Examples:
- With timezone : 2018-12-20T22:58:53+08:00
- Without timezone : 2018-12-20T22:58:53Z
- Note
- This struct is null-terminated can be directly printed as a string
- Examples:
- dms/messages/main.c , dms/telemetry/main.c , file/log_file/main.c , file/log_file_encrypted/main.c , hurricane/weatherstation/main.c , network/http_server/requests/root_page.c , network/http_server_stream/main.c , network/tcp_client/main.c , network/udp_client/main.c , network/websocket_client/main.c , utility/msgpack/read_write_buffer.c , and utility/msgpack/read_write_stream.c .
Field Documentation
◆ colon1
char gos_iso8601_str_t::colon1 |
Colon1
◆ colon2
char gos_iso8601_str_t::colon2 |
Colon2
◆ colon3
char gos_iso8601_str_t::colon3 |
Colon3 if timezone used, else null
◆ dash1
char gos_iso8601_str_t::dash1 |
Dash1
◆ dash2
char gos_iso8601_str_t::dash2 |
Dash2
◆ day
char gos_iso8601_str_t::day[2] |
Day
◆ hour
char gos_iso8601_str_t::hour[2] |
Hour
◆ minute
char gos_iso8601_str_t::minute[2] |
Minute
◆ month
char gos_iso8601_str_t::month[2] |
Month
◆ null_terminator
char gos_iso8601_str_t::null_terminator |
This is always null
◆ second
char gos_iso8601_str_t::second[2] |
Second
◆ T
char gos_iso8601_str_t::T |
T
- Examples:
- hurricane/weatherstation/main.c .
◆ timezone
char gos_iso8601_str_t::timezone |
Timezone offset. If used will be + or -, if not used will be Z
- Examples:
- hurricane/weatherstation/main.c .
◆ timezone_hour
char gos_iso8601_str_t::timezone_hour[2] |
Timezone hours if used, else null
◆ timezone_minute
char gos_iso8601_str_t::timezone_minute[2] |
Timezone minutes if used, else null
◆ year
char gos_iso8601_str_t::year[4] |
Year