class TimeZoneUtcOffset
Defined at line 109 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/time/WeaveTime.h
Codec for UTC offset of a timezone
Public Members
uint8_t mSize
UtcOffsetRecord[4] mUtcOffsetRecord
static const uint32_t BufferSizeForEncoding
Public Methods
WEAVE_ERROR GetCurrentLocalTime (timesync_t *const aLocalTime, const timesync_t aUtcTime)
convert UTC time to local time, using the UTC offsets stored.
Parameters
aLocalTime [out] A pointer to the resulting local time
aUtcTime [in] UTC time
Returns
WEAVE_NO_ERROR On success. WEAVE_ERROR_KEY_NOT_FOUND if it couldn't find reasonable results
WEAVE_ERROR Decode (const uint8_t *const aInputBuf, const uint32_t aDataSize)
decode UTC offsets from a byte string, extracted from Weave TLV.
data type for size is the same as WeaveTLV.h
Parameters
aInputBuf [in] A pointer to the input data buffer
aDataSize [in] number of bytes available
Returns
WEAVE_NO_ERROR on success
WEAVE_ERROR Encode (uint8_t *const aOutputBuf, uint32_t *const aDataSize)
encode UTC offsets into a buffer.
data type for size is the same as WeaveTLV.h
Parameters
aOutputBuf [out] A pointer to the output data buffer
aDataSize [in] A pointer to number of bytes available in aOutputBuf at calling and will be changed to indicate number of bytes used after the function returns.
Returns
WEAVE_NO_ERROR on success
void TimeZoneUtcOffset ()
Defined at line 127 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/time/WeaveTime.h