Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Sep 24, 2019 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
More...
#include <cs_TimeOfDay.h>
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Sep 24, 2019 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
Objects of this type represent a time of day. They are stored as time offset relative to one of several key events like midnight and sunrise.
◆ SerializedDataType
◆ BaseTime
Enumerator |
---|
Midnight | |
Sunrise | |
Sunset | |
◆ TimeOfDay() [1/4]
◆ TimeOfDay() [2/4]
◆ TimeOfDay() [3/4]
◆ TimeOfDay() [4/4]
◆ baseTimeSinceMidnight()
int32_t TimeOfDay::baseTimeSinceMidnight |
( |
BaseTime |
b | ) |
|
|
private |
◆ convert()
◆ h()
◆ m()
◆ Midnight()
◆ operator uint32_t()
TimeOfDay::operator uint32_t |
( |
| ) |
|
Implicit cast operators, returns seconds since midnight (enables built in relational operators).
◆ s()
◆ serialize()
◆ Sunrise()
◆ Sunset()
◆ wrap()
◆ base
◆ secSinceBase
int32_t TimeOfDay::secSinceBase |
|
private |
The documentation for this class was generated from the following file: