#include "common.h"
#include <algorithm>
#include <cstdlib>
Go to the source code of this file.
◆ DATE_MAKE
◆ date_DecodeToString()
void date_DecodeToString |
( |
dateT |
date, |
|
|
char * |
str |
|
) |
| |
|
inline |
◆ date_EncodeFromString()
dateT date_EncodeFromString |
( |
const char * |
str | ) |
|
|
inline |
◆ date_GetDay()
◆ date_GetMonth()
◆ date_GetMonthDay()
◆ date_GetYear()
◆ date_parsePGNTag() [1/2]
dateT date_parsePGNTag |
( |
const char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Creates a dateT object from a PGN tag value string.
"The Date tag value field always uses a standard ten character format:
"YYYY.MM.DD". If the any of the digit fields are not known, then question
marks are used in place of the digits."
- Parameters
-
str | pointer to the memory containing the tag value. |
len | length of the tag value. |
- Returns
- the dateT object corresponding to str.
Definition at line 166 of file date.h.
◆ date_parsePGNTag() [2/2]
dateT date_parsePGNTag |
( |
std::pair< const char *, const char *> |
str | ) |
|
|
inline |
◆ DAY_SHIFT
◆ MONTH_SHIFT
const uint MONTH_SHIFT = 5 |
◆ YEAR_MAX
const uint YEAR_MAX = 2047 |
◆ YEAR_SHIFT
const uint YEAR_SHIFT = 9 |
◆ ZERO_DATE
const dateT ZERO_DATE = 0 |