CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::PsyDateAndTime Struct Reference

A PsyTime timestamp or time difference broken down into calendar fields. More...

#include <PsyTime.h>

Public Attributes

uint32 usec
uint32 msec
uint16 sec
uint16 min
uint16 hour
uint16 day
uint16 mon
uint16 year
uint16 wday
uint16 yday
bool negative
bool dst
int32 dstsec
int32 tzsec
char zonename [64]

Detailed Description

A PsyTime timestamp or time difference broken down into calendar fields.

Equivalent of struct tm for the PsyTime timescale, extended with sub-second fields and timezone/DST information. Produced by GetDateAndTime(), GetDateAndTimeUTC() and GetTimeDifference(); converted back with GetTimeFromPsyDateAndTime(). Note the 1-based conventions for day-of-week, month and day-of-year (index 0 means "none" in the name tables above).

Definition at line 150 of file PsyTime.h.

Member Data Documentation

◆ day

◆ dst

bool cmlabs::PsyDateAndTime::dst

Definition at line 162 of file PsyTime.h.

Referenced by cmlabs::GetDateAndTime().

◆ dstsec

int32 cmlabs::PsyDateAndTime::dstsec

Definition at line 163 of file PsyTime.h.

Referenced by cmlabs::GetDateAndTime(), and cmlabs::PsyTime_UnitTest().

◆ hour

◆ min

◆ mon

◆ msec

◆ negative

bool cmlabs::PsyDateAndTime::negative

Definition at line 161 of file PsyTime.h.

Referenced by cmlabs::GetTimeDifference(), and cmlabs::PsyTime_UnitTest().

◆ sec

◆ tzsec

int32 cmlabs::PsyDateAndTime::tzsec

Definition at line 164 of file PsyTime.h.

Referenced by cmlabs::GetDateAndTime(), and cmlabs::PsyTime_UnitTest().

◆ usec

◆ wday

uint16 cmlabs::PsyDateAndTime::wday

Definition at line 159 of file PsyTime.h.

Referenced by cmlabs::GetDateAndTime(), and cmlabs::GetHTTPTime().

◆ yday

uint16 cmlabs::PsyDateAndTime::yday

◆ year

◆ zonename


The documentation for this struct was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/PsyTime.h