Products Support Documentation Download
rdmdatetimetypes.h File Reference

Header for the public Date/Time types. More...

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

Go to the source code of this file.

Data Structures

struct  RDM_DATE_T
 The RDM Date data structure. More...
 
struct  RDM_TIME_T
 The RDM Time data structure. More...
 
struct  RDM_TIMESTAMP_T
 The RDM Timestamp data structure. More...
 
struct  RDM_TIMETZ_T
 The RDM Time w/ timezone data structure. More...
 
struct  RDM_TIMESTAMPTZ_T
 The RDM Timestamp data structure. More...
 
struct  RDM_PACKED_TIMESTAMP_T
 The RDM packed Timestamp data structure. More...
 
struct  RDM_PACKED_TIMETZ_T
 The RDM packed Time with time zone data structure. More...
 
struct  RDM_PACKED_TIMESTAMPTZ_T
 The RDM packed Timestamp with time zone data structure. More...
 

Macros

#define RDM_DATE_MAX   RDM_UINT32_MAX
 The Maximum date. More...
 
#define RDM_TIME_MAX   ((((((23 * 60) + 59) * 60) + 59) * 10000) + 9999)
 The Maximum time. More...
 
#define MAX_TIME_PREC   10000
 The Maximum time presision 1/x'th of a second. More...
 
#define RDM_DEF_DATE_FORMAT   RDM_YYYYMMDD
 The default date format. More...
 
#define RDM_DEF_DATE_SEP   '-'
 The default date separator. More...
 
#define RDM_DEF_TIME_FORMAT   RDM_HHMMSSFFFF
 The default time format. More...
 

Typedefs

typedef char RDM_DATE_SEPARATOR
 
typedef uint32_t RDM_PACKED_DATE_T
 The RDM packed Date data structure. More...
 
typedef uint32_t RDM_PACKED_TIME_T
 The RDM packed Time data structure. More...
 

Enumerations

enum  RDM_DATE_FORMAT { RDM_MMDDYYYY = 1, RDM_YYYYMMDD, RDM_DDMMYYYY }
 RDM Date format codes. More...
 
enum  RDM_TIME_FORMAT {
  RDM_HH = 1, RDM_HHMM, RDM_HHMMSS, RDM_HHMMSSF,
  RDM_HHMMSSFF, RDM_HHMMSSFFF, RDM_HHMMSSFFFF
}
 RDM time format codes. More...
 

Detailed Description

Header for the public Date/Time types.

Definition in file rdmdatetimetypes.h.

Macro Definition Documentation

◆ MAX_TIME_PREC

#define MAX_TIME_PREC   10000

The Maximum time presision 1/x'th of a second.

Definition at line 28 of file rdmdatetimetypes.h.

◆ RDM_DATE_MAX

#define RDM_DATE_MAX   RDM_UINT32_MAX

The Maximum date.

Definition at line 23 of file rdmdatetimetypes.h.

◆ RDM_DEF_DATE_FORMAT

#define RDM_DEF_DATE_FORMAT   RDM_YYYYMMDD

The default date format.

Definition at line 31 of file rdmdatetimetypes.h.

◆ RDM_DEF_DATE_SEP

#define RDM_DEF_DATE_SEP   '-'

The default date separator.

Definition at line 33 of file rdmdatetimetypes.h.

◆ RDM_DEF_TIME_FORMAT

#define RDM_DEF_TIME_FORMAT   RDM_HHMMSSFFFF

The default time format.

Definition at line 35 of file rdmdatetimetypes.h.

◆ RDM_TIME_MAX

#define RDM_TIME_MAX   ((((((23 * 60) + 59) * 60) + 59) * 10000) + 9999)

The Maximum time.

Definition at line 25 of file rdmdatetimetypes.h.

Typedef Documentation

◆ RDM_DATE_SEPARATOR

typedef char RDM_DATE_SEPARATOR

Definition at line 37 of file rdmdatetimetypes.h.

◆ RDM_PACKED_DATE_T

typedef uint32_t RDM_PACKED_DATE_T

The RDM packed Date data structure.

Definition at line 110 of file rdmdatetimetypes.h.

◆ RDM_PACKED_TIME_T

typedef uint32_t RDM_PACKED_TIME_T

The RDM packed Time data structure.

Definition at line 114 of file rdmdatetimetypes.h.

Enumeration Type Documentation

◆ RDM_DATE_FORMAT

RDM Date format codes.

Enumerator
RDM_MMDDYYYY 

The date format code for month, followed by a date separator, followed by date, followed by a date separator, followed by year

RDM_YYYYMMDD 

The date format code for year, followed by a date separator, followed by month, followed by a date separator, followed by date

RDM_DDMMYYYY 

The date format code for date, followed by a date separator, followed by month, followed by a date separator, followed by year

Definition at line 142 of file rdmdatetimetypes.h.

143 {
144  /* GEN_RDM_DATE_FORMAT_BEGIN */
145  RDM_MMDDYYYY = 1,
146  RDM_YYYYMMDD,
147  RDM_DDMMYYYY
148  /* GEN_RDM_DATE_FORMAT_END */
RDM_DATE_FORMAT
RDM Date format codes.

◆ RDM_TIME_FORMAT

RDM time format codes.

Enumerator
RDM_HH 

The time format code for hours

RDM_HHMM 

The time format code for hours, followed by ':', followed by the time separator, TBD followed by minutes

RDM_HHMMSS 

The time format code for hours, followed by ':', followed by minutes, followed by ':', followed by seconds

RDM_HHMMSSF 

The time format code for hours, followed by ':', followed by minutes, followed by ':', followed by seconds, followed by '.', followed by 1/10th of seconds

RDM_HHMMSSFF 

The time format code for hours, followed by ':', followed by minutes, followed by ':', followed by seconds, followed by '.', followed by 1/100th of seconds

RDM_HHMMSSFFF 

The time format code for hours, followed by ':', followed by minutes, followed by ':', followed by seconds, followed by '.', followed by 1/1000th of seconds

RDM_HHMMSSFFFF 

The time format code for hours, followed by ':', followed by minutes, followed by ':', followed by seconds, followed by '.', followed by 1/10000th of seconds

Definition at line 153 of file rdmdatetimetypes.h.

154 {
155  /* GEN_RDM_TIME_FORMAT_BEGIN */
156  RDM_HH = 1,
157  RDM_HHMM,
158  RDM_HHMMSS,
159  RDM_HHMMSSF,
160  RDM_HHMMSSFF,
161  RDM_HHMMSSFFF,
163  /* GEN_RDM_TIME_FORMAT_END */
RDM_TIME_FORMAT
RDM time format codes.