Function __global->post_param_date_components
Definitions
sources/temporal2.php
- Sanitise a POST inputted date, and get the date/time components.This does not support time zones. Use post_param_date_components_tz instead.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$stub | ID_TEXT | required parameter | N/A | N/A | The stub of the parameter name (stub_year, stub_month, stub_day, stub_hour, stub_minute) |
$year | ?integer | Null | N/A | N/A | Default year (null: none) |
$month | ?integer | Null | N/A | N/A | Default month (null: none) |
$day | ?integer | Null | N/A | N/A | Default day (null: none) |
$get_also | boolean | False | N/A | N/A | Whether to allow over get parameters also |
Return
- The date/time components
- Type: array
- Set: N/A
- Range: N/A