leapc
Loading...
Searching...
No Matches
Data Fields
leap_date Struct Reference

Leap year date structure. More...

#include <leap.h>

Data Fields

int year
 Year.
 
int month
 Month of year starting from 1 for January.
 
int day
 Day of month starting from 1 for the first day of the month.
 

Detailed Description

Leap year date structure.

Represents a date in terms of year, month, and day of month, accounting for leap years.

Definition at line 163 of file leap.h.

Field Documentation

◆ day

int leap_date::day

Day of month starting from 1 for the first day of the month.

The day of the month is one-based, starting from 1 for the first day of the month through to 28, 29, 30, or 31 depending on the month and leap year status.

Definition at line 181 of file leap.h.

◆ month

int leap_date::month

Month of year starting from 1 for January.

The month is one-based, starting from 1 for January through 12 for December. The month is therefore an ordinal value in the range 1 to 12 inclusive, not a cardinal value starting from 0.

Definition at line 174 of file leap.h.

◆ year

int leap_date::year

Year.

Definition at line 167 of file leap.h.


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