weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Data Fields
date_t Struct Reference

Data Fields

uint8_t d
 The day in the month.
uint8_t m
 The month.
uint8_t wd
 The day in the week.
uint8_t y
 The year.

Detailed Description

Date structure: a date in our time.

This type represents a date in the range 2000-01-01 to 2255-12-31 including day-of-week. Regarding the supplied functions for converting, formatting and parsing and its internal use it is strongly recommended to restrict its use to weAutSys's (currently) usable date range: 2008-3-1 .. +68 years.

In that restricted sense this is the "structured" equivalent to the absolute date as days since March 1st 2008 (weAutSys's day 0) — especially to the field d of a datdur_t structure related to that "zero".

Due to this equivalence an unsigned 16 bit "number of days since" value can be converted to this type and vice versa.

This type it is also commonly used as intermediate form for parsing and formatting.


Field Documentation

uint8_t wd

The day in the week.

The range is 1..7 Sunday to Saturday.
The value 0 means unknown respectively not yet set consistent to the other fields.

uint8_t y

The year.

The (recommended / usable) range is 8..141 to be interpreted as 2008 .. 2141

uint8_t m

The month.

The range is, of course, 1..12 as January..December.

uint8_t d

The day in the month.

The range is 1..28 | 29 | 30 | 31.


The documentation for this struct was generated from the following file: