Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
Time Class Reference

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_Time.h>

Public Member Functions

 Time (uint32_t posixTime)
 
 Time (DayOfWeek day, uint8_t hours, uint8_t minutes, uint8_t seconds=0)
 
uint32_t timestamp ()
 
bool isValid ()
 
DayOfWeek dayOfWeek ()
 See: http://stackoverflow.com/questions/36357013/day-of-week-from-seconds-since-epoch With timestamp=0 = Thursday 1-January-1970 00:00:00. More...
 
TimeOfDay timeOfDay ()
 

Private Attributes

uint32_t posixTimeStamp
 

Detailed Description

Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Sep 24, 2019 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)

Constructor & Destructor Documentation

◆ Time() [1/2]

Time::Time ( uint32_t  posixTime)
inline

◆ Time() [2/2]

Time::Time ( DayOfWeek  day,
uint8_t  hours,
uint8_t  minutes,
uint8_t  seconds = 0 
)
inline

Member Function Documentation

◆ dayOfWeek()

DayOfWeek Time::dayOfWeek ( )
inline

See: http://stackoverflow.com/questions/36357013/day-of-week-from-seconds-since-epoch With timestamp=0 = Thursday 1-January-1970 00:00:00.

◆ isValid()

bool Time::isValid ( )
inline

◆ timeOfDay()

TimeOfDay Time::timeOfDay ( )
inline

◆ timestamp()

uint32_t Time::timestamp ( )
inline

Member Data Documentation

◆ posixTimeStamp

uint32_t Time::posixTimeStamp
private

The documentation for this class was generated from the following file: