Scid  4.6.5
Macros | Functions | Variables
date.h File Reference
#include "common.h"
#include <cstdlib>
Include dependency graph for date.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DATE_MAKE(y, m, d)   (((y) << YEAR_SHIFT) | ((m) << MONTH_SHIFT) | (d))
 

Functions

bool date_ValidString (const char *str)
 
uint date_GetYear (dateT date)
 
uint date_GetMonth (dateT date)
 
uint date_GetDay (dateT date)
 
uint date_GetMonthDay (dateT date)
 
void date_DecodeToString (dateT date, char *str)
 
dateT date_EncodeFromString (const char *str)
 

Variables

const dateT ZERO_DATE = 0
 
const uint YEAR_SHIFT = 9
 
const uint MONTH_SHIFT = 5
 
const uint DAY_SHIFT = 0
 
const uint YEAR_MAX = 2047
 

Macro Definition Documentation

#define DATE_MAKE (   y,
  m,
 
)    (((y) << YEAR_SHIFT) | ((m) << MONTH_SHIFT) | (d))

Definition at line 44 of file date.h.

Function Documentation

void date_DecodeToString ( dateT  date,
char *  str 
)
inline

Definition at line 90 of file date.h.

dateT date_EncodeFromString ( const char *  str)
inline

Definition at line 130 of file date.h.

uint date_GetDay ( dateT  date)
inline

Definition at line 73 of file date.h.

uint date_GetMonth ( dateT  date)
inline

Definition at line 64 of file date.h.

uint date_GetMonthDay ( dateT  date)
inline

Definition at line 82 of file date.h.

uint date_GetYear ( dateT  date)
inline

Definition at line 55 of file date.h.

bool date_ValidString ( const char *  str)

Definition at line 21 of file date.cpp.

Variable Documentation

const uint DAY_SHIFT = 0

Definition at line 38 of file date.h.

const uint MONTH_SHIFT = 5

Definition at line 37 of file date.h.

const uint YEAR_MAX = 2047

Definition at line 42 of file date.h.

const uint YEAR_SHIFT = 9

Definition at line 36 of file date.h.

const dateT ZERO_DATE = 0

Definition at line 34 of file date.h.