rdmdateapi.h File Reference

Header for the public Date API. More...

#include "rdmdatetimetypes.h"
#include "rdmretcodetypes.h"
Include dependency graph for rdmdateapi.h:
This graph shows which files directly or indirectly include this file:

Macros

#define RDM_DATE_MAXRDM_UINT32_MAX

Functions

const char * rdm_dateDayAbr (RDM_PACKED_DATE_T dt)
Get the day abbreviation. More...
const char * rdm_dateDayName (RDM_PACKED_DATE_T dt)
Get the day name. More...
uint16_t rdm_dateDayOfMonth (RDM_PACKED_DATE_T dt)
Get the day of the month. More...
uint16_t rdm_dateDayOfWeek (RDM_PACKED_DATE_T dt)
Get the day of the week. More...
uint16_t rdm_dateDayOfYear (RDM_PACKED_DATE_T dt)
Get the day of the year. More...
RDM_RETCODE rdm_dateFromString (const char *str, RDM_DATE_FORMAT date_fmt, RDM_PACKED_DATE_T *pdv)
Convert from a string to a date. More...
uint16_t rdm_dateMonth (RDM_PACKED_DATE_T dt)
Get the month. More...
const char * rdm_dateMonthAbr (RDM_PACKED_DATE_T dt)
Get the month abbreviation. More...
const char * rdm_dateMonthName (RDM_PACKED_DATE_T dt)
Get the month name. More...
RDM_RETCODE rdm_dateNowAsString (int16_t time_zone, char *datebuf, size_t buflen)
Get the current date as a string. More...
uint16_t rdm_dateQuarter (RDM_PACKED_DATE_T dt)
Get the quarter of the year. More...
RDM_RETCODE rdm_dateToday (int16_t time_zone, RDM_PACKED_DATE_T *pdt)
Get the current date. More...
RDM_RETCODE rdm_dateToString (RDM_PACKED_DATE_T dateVal, RDM_DATE_FORMAT date_fmt, char date_sep, char *buf, size_t bufSize, size_t *puSize)
Convert a date to a string. More...
uint16_t rdm_dateWeek (RDM_PACKED_DATE_T dt)
Get the week of the year. More...
int32_t rdm_dateYear (RDM_PACKED_DATE_T dt)
Get the year. More...
RDM_PACKED_DATE_T rdm_dateZero (void)
Get the date of the epoch. More...

Detailed Description

Header for the public Date API.