libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_date_time.h>
Data Fields | |
GblYear | year |
GblMonth | month |
GblDay | day |
Related Symbols | |
(Note that these are not member symbols.) | |
Date Methods | |
Member functions for GblDate | |
GblBool | GblDate_isValid (const GblDate *pSelf) |
GblBool | GblDate_isDst (const GblDate *pSelf) |
GblDay | GblDate_toJulian (const GblDate *pSelf) |
GblWeekDay | GblDate_weekDay (const GblDate *pSelf) |
GblDay | GblDate_yearDay (const GblDate *pSelf) |
uint8_t | GblDate_yearWeek (const GblDate *pSelf) |
GblDate * | GblDate_fromJulian (GblDate *pSelf, GblDay julianDate) |
GblDate * | GblDate_fromOrdinal (GblDate *pSelf, GblYear year, GblDay day) |
void | GblDate_set (GblDate *pSelf, GblYear year, GblMonth month, GblDay day) |
Time Static Methods | |
Non-member functions for time management | |
const char * | GblTime_amPmStr (GblBool isPm) |
GblSecond | GblTime_localUtcOffset (void) |
GblTimeSpec | GblTime_specDiff (const GblTimeSpec *pSrc1, const GblTimeSpec *pSrc2) |
Represents a calendar date.
Definition at line 115 of file gimbal_date_time.h.
Returns GBL_TRUE if the given structure represents a valid GblDate.
Returns GBL_TRUE if the given date is during daylight savings time.
Returns the Julian Day from the given date.
|
related |
Returns the day of the week for the given date.
Returns the day-of-the-year (1-365) for the given date.
|
related |
Returns the week-of-the-year (1-52) for the given date.
Converts the given julian date to a GblDate, storing it in pSelf
and returning it.
Converts the given ordinal date to a GblDate, storing it in pSelf
and returning it.
Sets the given date structure, given its year
, month
, and day
.
|
related |
Returns the string "PM" if isPm
is GBL_TRUE, otherwise returns "AM".
|
related |
Returns the number of seconds the local time is offset from UTC time.
|
related |
Returns the difference between two NS-resolution GblTimeSpec values.
GblYear GblDate::year |
Year.
Definition at line 116 of file gimbal_date_time.h.
GblMonth GblDate::month |
Month of the year (1-12)
Definition at line 117 of file gimbal_date_time.h.
GblDay GblDate::day |
Day of the month (1-31)
Definition at line 118 of file gimbal_date_time.h.