date inside, time inside
Checks if the variable contains a date or time information.
Vectorization: These function support vectorization in the 1st function parameter.
Instead of providing a single value, you can provide a set or even a nested set which contain multiple values.
The function will then process every value and its return value contains a corresponding set containing all results.
Indirect parameter passing is disabled
Vectorization is allowed in the 1st function parameter
1
No. | Type | Description |
---|---|---|
1 input |
date or string converted to date set |
Date value to check Value to check. Vectorization: Specify multiple parameters into a (nested) set |
Type | Description |
---|---|
boolean set |
Result Function date inside returns true if the variable contains a date. |
dates[] = { "2020-01-01", today, "2020-01-01 13:00:00", now, "13:00:00", time(now), "", date("") };
for all( dates[], date[] ) echo( date inside(date[]), " / ", time inside(date[]) );
true / false
true / false
true / true
true / false
false / true
false / true
false / false
false / false