parquet_date Interface

public interface parquet_date

Constructs a valid parquet_date from (year, month, day); aborts on an invalid civil date (the structure constructor itself is unavailable outside this module -- components are private -- so this generic takes its place).


Module Procedures

private impure elemental function date_new(year, month, day) result(res)

Constructor specific for the parquet_date generic: builds a valid date element from (year, month, day); aborts on an invalid civil date.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: year

calendar year.

integer(kind=int32), intent(in) :: month

month, 1..12.

integer(kind=int32), intent(in) :: day

day of month.

Return Value type(parquet_date)

the constructed element (valid).