Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions | Variables

Adaptive Function union<dateTime> More...

Functions

const afw_value_tafw_function_execute_add_yearMonthDuration_date (afw_function_execute_t *x)
 Adaptive Function add_yearMonthDuration<date> More...
 
const afw_value_tafw_function_execute_subtract_yearMonthDuration_date (afw_function_execute_t *x)
 Adaptive Function subtract_yearMonthDuration<date> More...
 

Variables

 afw_function_definition_add_yearMonthDuration_date
 Function definition add_yearMonthDuration<date>
 
 afw_function_definition_at_least_one_member_of_date
 Function definition at_least_one_member_of<date>
 
 afw_function_definition_bag_date
 Adaptive Function at_least_one_member_of<date> More...
 
 afw_function_definition_bag_size_date
 Adaptive Function bag<date> More...
 
 afw_function_definition_date
 Adaptive Function bag_size<date> More...
 
 afw_function_definition_eq_date
 Adaptive Function date More...
 
 afw_function_definition_eqx_date
 Adaptive Function eq<date> More...
 
 afw_function_definition_ge_date
 Adaptive Function eqx<date> More...
 
 afw_function_definition_gt_date
 Adaptive Function ge<date> More...
 
 afw_function_definition_intersection_date
 Adaptive Function gt<date> More...
 
 afw_function_definition_is_date
 Adaptive Function intersection<date> More...
 
 afw_function_definition_is_in_date
 Adaptive Function is<date> More...
 
 afw_function_definition_le_date
 Adaptive Function is_in<date> More...
 
 afw_function_definition_lt_date
 Adaptive Function le<date> More...
 
 afw_function_definition_max_date
 Adaptive Function lt<date> More...
 
 afw_function_definition_min_date
 Adaptive Function max<date> More...
 
 afw_function_definition_ne_date
 Adaptive Function min<date> More...
 
 afw_function_definition_nex_date
 Adaptive Function ne<date> More...
 
 afw_function_definition_one_and_only_date
 Adaptive Function nex<date> More...
 
 afw_function_definition_set_equals_date
 Adaptive Function one_and_only<date> More...
 
 afw_function_definition_subset_date
 Adaptive Function set_equals<date> More...
 
 afw_function_definition_subtract_yearMonthDuration_date
 Adaptive Function subset<date> More...
 
 afw_function_definition_to_string_date
 Function definition to_string<date>
 
 afw_function_definition_union_date
 Adaptive Function to_string<date> More...
 

Detailed Description

Adaptive Function union<dateTime>

Parameters
xfunction execute parameter.

Returns a list of dateTime contains all of the unique values in two or more list of dateTime values.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function union<dateTime>(
lists_1: (list dateTime),
lists_2: (list dateTime),
...lists_rest: (list of (list dateTime))
): (list dateTime);

Parameters:

lists - (2 or more list dateTime) Two or more lists.

Returns:

(list dateTime)

Implemented by afw_function_execute_union()


date adaptive functions.

Function Documentation

◆ afw_function_execute_add_yearMonthDuration_date()

const afw_value_t* afw_function_execute_add_yearMonthDuration_date ( afw_function_execute_t x)

Adaptive Function add_yearMonthDuration<date>

Parameters
xfunction execute parameter.

Add date arg1 to yearMonthDuration arg2 and return the date result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function add_yearMonthDuration<date>(
arg1: date,
arg2: yearMonthDuration
): date;

Parameters:

arg1 - (date)

arg2 - (yearMonthDuration)

Returns:

(date)

Definition at line 50 of file afw_function_date.c.

◆ afw_function_execute_subtract_yearMonthDuration_date()

const afw_value_t* afw_function_execute_subtract_yearMonthDuration_date ( afw_function_execute_t x)

Adaptive Function subtract_yearMonthDuration<date>

Parameters
xfunction execute parameter.

Subtract yearMonthDuration arg2 from date arg1 and return the date result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function subtract_yearMonthDuration<date>(
arg1: date,
arg2: yearMonthDuration
): date;

Parameters:

arg1 - (date)

arg2 - (yearMonthDuration)

Returns:

(date)

Definition at line 103 of file afw_function_date.c.

Variable Documentation

◆ afw_function_definition_bag_date

afw_function_definition_bag_date

Adaptive Function at_least_one_member_of<date>

Parameters
xfunction execute parameter.

Returns boolean true if at least one value in date list1 is in date list2.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function at_least_one_member_of<date>(
list1: (list date),
list2: (list date)
): boolean;

Parameters:

list1 - (list date) The first list.

list2 - (list date) The second list.

Returns:

(boolean)

Implemented by afw_function_execute_at_least_one_member_of()


Function definition bag<date>

Definition at line 6883 of file afw_function_bindings.h.

◆ afw_function_definition_bag_size_date

afw_function_definition_bag_size_date

Adaptive Function bag<date>

Parameters
xfunction execute parameter.

Takes any number of date values and returns a list of list.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function bag<date>(
...values: (list of (list date))
): (list date);

Parameters:

values - (0 or more list date)

Returns:

(list date)

Implemented by afw_function_execute_bag()


Function definition bag_size<date>

Definition at line 6917 of file afw_function_bindings.h.

◆ afw_function_definition_date

afw_function_definition_date

Adaptive Function bag_size<date>

Parameters
xfunction execute parameter.

This returns the integer number of values in list.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function bag_size<date>(
value: (list date)
): integer;

Parameters:

value - (list date)

Returns:

(integer)

Implemented by afw_function_execute_bag_size()


Function definition date

Definition at line 6951 of file afw_function_bindings.h.

◆ afw_function_definition_eq_date

afw_function_definition_eq_date

Adaptive Function date

Parameters
xfunction execute parameter.

Converts value to data type date returning date result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function date(
value: any
): date;

Parameters:

value - (any dataType) Value to convert.

Returns:

(date) Converted value.

Errors thrown:

cast_error - value could not be converted

Implemented by afw_function_execute_convert()


Function definition eq<date>

Definition at line 6989 of file afw_function_bindings.h.

◆ afw_function_definition_eqx_date

afw_function_definition_eqx_date

Adaptive Function eq<date>

Parameters
xfunction execute parameter.

Determine if date arg1 is equal to the value of arg2 converted to the data type of arg1 then return the boolean result. Use "eqx" ("===") instead if you want false to be returned if arg1 and arg2's data type don't match.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function eq<date>(
arg1: date,
arg2: any
): boolean;

Parameters:

arg1 - (date)

arg2 - (any dataType)

Returns:

(boolean)

Errors thrown:

conversion - arg2 cannot be converted to the data type of arg1.

Implemented by afw_function_execute_eq()


Function definition eqx<date>

Definition at line 7032 of file afw_function_bindings.h.

◆ afw_function_definition_ge_date

afw_function_definition_ge_date

Adaptive Function eqx<date>

Parameters
xfunction execute parameter.

Determine if for date arg1 is equal to the value and data type of arg2 then return the boolean result. Use "eq" ("==") instead if you want arg2 to be converted to the data type of arg1 before comparison.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function eqx<date>(
arg1: date,
arg2: any
): boolean;

Parameters:

arg1 - (date)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_eqx()


Function definition ge<date>

Definition at line 7071 of file afw_function_bindings.h.

◆ afw_function_definition_gt_date

afw_function_definition_gt_date

Adaptive Function ge<date>

Parameters
xfunction execute parameter.

Checks for date arg1 is greater than or equal to date arg2 and return the boolean result.

If a date value does not include a time-zone value, then the local time-zone value will be assigned.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function ge<date>(
arg1: date,
arg2: date
): boolean;

Parameters:

arg1 - (date)

arg2 - (date)

Returns:

(boolean)

Implemented by afw_function_execute_ge()


Function definition gt<date>

Definition at line 7112 of file afw_function_bindings.h.

◆ afw_function_definition_intersection_date

afw_function_definition_intersection_date

Adaptive Function gt<date>

Parameters
xfunction execute parameter.

Checks for date arg1 is greater than date arg2 and return the boolean result.

If a date value does not include a time-zone value, then the local time-zone value will be assigned.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function gt<date>(
arg1: date,
arg2: date
): boolean;

Parameters:

arg1 - (date)

arg2 - (date)

Returns:

(boolean)

Implemented by afw_function_execute_gt()


Function definition intersection<date>

Definition at line 7153 of file afw_function_bindings.h.

◆ afw_function_definition_is_date

afw_function_definition_is_date

Adaptive Function intersection<date>

Parameters
xfunction execute parameter.

Returns a list of date with the values that are common to both list of date list1 and list2.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function intersection<date>(
list1: (list date),
list2: (list date)
): (list date);

Parameters:

list1 - (list date) The first list.

list2 - (list date) The second list.

Returns:

(list date)

Implemented by afw_function_execute_intersection()


Function definition is<date>

Definition at line 7191 of file afw_function_bindings.h.

◆ afw_function_definition_is_in_date

afw_function_definition_is_in_date

Adaptive Function is<date>

Parameters
xfunction execute parameter.

Checks whether value is dataType date and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function is<date>(
value: any
): boolean;

Parameters:

value - (any dataType) Value to check.

Returns:

(boolean)

Implemented by afw_function_execute_is()


Function definition is_in<date>

Definition at line 7225 of file afw_function_bindings.h.

◆ afw_function_definition_le_date

afw_function_definition_le_date

Adaptive Function is_in<date>

Parameters
xfunction execute parameter.

Checks whether date value is in list of date list and returns the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function is_in<date>(
value: date,
list: (list date)
): boolean;

Parameters:

value - (date)

list - (list date)

Returns:

(boolean)

Implemented by afw_function_execute_is_in()


Function definition le<date>

Definition at line 7263 of file afw_function_bindings.h.

◆ afw_function_definition_lt_date

afw_function_definition_lt_date

Adaptive Function le<date>

Parameters
xfunction execute parameter.

Checks for date arg1 is less than or equal to date arg2 and return the boolean result.

If a date value does not include a time-zone value, then the local time-zone value will be assigned.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function le<date>(
arg1: date,
arg2: any
): boolean;

Parameters:

arg1 - (date)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_le()


Function definition lt<date>

Definition at line 7304 of file afw_function_bindings.h.

◆ afw_function_definition_max_date

afw_function_definition_max_date

Adaptive Function lt<date>

Parameters
xfunction execute parameter.

Checks for date arg1 is less that date arg2 and return the boolean result.

If a date value does not include a time-zone value, then the local time-zone value will be assigned.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function lt<date>(
arg1: date,
arg2: date
): boolean;

Parameters:

arg1 - (date)

arg2 - (date)

Returns:

(boolean)

Implemented by afw_function_execute_lt()


Function definition max<date>

Definition at line 7344 of file afw_function_bindings.h.

◆ afw_function_definition_min_date

afw_function_definition_min_date

Adaptive Function max<date>

Parameters
xfunction execute parameter.

Return the date value that is greater than or equal to the others..

If a date value does not include a time-zone value, then the local time-zone value will be assigned.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function max<date>(
values_1: date,
...values_rest: (list of date)
): date;

Parameters:

values - (1 or more date)

Returns:

(date)

Implemented by afw_function_execute_max()


Function definition min<date>

Definition at line 7382 of file afw_function_bindings.h.

◆ afw_function_definition_ne_date

afw_function_definition_ne_date

Adaptive Function min<date>

Parameters
xfunction execute parameter.

Return the date value that is less than or equal to the others..

If a date value does not include a time-zone value, then the local time-zone value will be assigned.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function min<date>(
values_1: date,
...values_rest: (list of date)
): date;

Parameters:

values - (1 or more date)

Returns:

(date)

Implemented by afw_function_execute_min()


Function definition ne<date>

Definition at line 7420 of file afw_function_bindings.h.

◆ afw_function_definition_nex_date

afw_function_definition_nex_date

Adaptive Function ne<date>

Parameters
xfunction execute parameter.

Determine if date arg1 is not equal to the value of arg2 converted to the data type of arg1 then return the boolean result. Use "nex" ("!==") instead if you want true to be returned if arg1 and arg2's data type don't match.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function ne<date>(
arg1: date,
arg2: any
): boolean;

Parameters:

arg1 - (date)

arg2 - (any dataType)

Returns:

(boolean)

Errors thrown:

conversion - arg2 cannot be converted to the data type of arg1.

Implemented by afw_function_execute_ne()


Function definition nex<date>

Definition at line 7463 of file afw_function_bindings.h.

◆ afw_function_definition_one_and_only_date

afw_function_definition_one_and_only_date

Adaptive Function nex<date>

Parameters
xfunction execute parameter.

Determine if for date arg1 is not equal to the value or data type of arg2 then return the boolean result. Use "ne" ("!=") instead if you want arg2 to be converted to the data type of arg1 before comparison.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function nex<date>(
arg1: date,
arg2: any
): boolean;

Parameters:

arg1 - (date)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_nex()


Function definition one_and_only<date>

Definition at line 7502 of file afw_function_bindings.h.

◆ afw_function_definition_set_equals_date

afw_function_definition_set_equals_date

Adaptive Function one_and_only<date>

Parameters
xfunction execute parameter.

This converts a list of date values that contains one value to a single date value.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function one_and_only<date>(
list: (list list)
): date;

Parameters:

list - (list list)

Returns:

(date)

Errors thrown:

arg_error - list does not contain exactly one value

Implemented by afw_function_execute_one_and_only()


Function definition set_equals<date>

Definition at line 7541 of file afw_function_bindings.h.

◆ afw_function_definition_subset_date

afw_function_definition_subset_date

Adaptive Function set_equals<date>

Parameters
xfunction execute parameter.

Returns boolean true if date list1 and date list2 are subsets of each other and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function set_equals<date>(
list1: (list date),
list2: (list date)
): boolean;

Parameters:

list1 - (list date)

list2 - (list date)

Returns:

(boolean)

Implemented by afw_function_execute_set_equals()


Function definition subset<date>

Definition at line 7579 of file afw_function_bindings.h.

◆ afw_function_definition_subtract_yearMonthDuration_date

afw_function_definition_subtract_yearMonthDuration_date

Adaptive Function subset<date>

Parameters
xfunction execute parameter.

Returns boolean true if the unique values in date list1 are all in date list2.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function subset<date>(
list1: (list date),
list2: (list date)
): boolean;

Parameters:

list1 - (list date) The first list.

list2 - (list date) The second list.

Returns:

(boolean)

Implemented by afw_function_execute_subset()


Function definition subtract_yearMonthDuration<date>

Definition at line 7617 of file afw_function_bindings.h.

◆ afw_function_definition_union_date

afw_function_definition_union_date

Adaptive Function to_string<date>

Parameters
xfunction execute parameter.

Converts date value to string. For list values, the to_string() value for each entry is returned separated with commas.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function to_string<date>(
value: date
): string;

Parameters:

value - (date) A date value.

Returns:

(string) The string representation of the value.

Implemented by afw_function_execute_convert()


Function definition union<date>

Definition at line 7688 of file afw_function_bindings.h.