Function __global->_post_param_date
Definitions
sources/temporal2.php
- Sanitise a POST inputted date, and get the Unix timestamp for the inputted date.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $stub | ID_TEXT | No | No | required parameter | N/A | N/A | The stub of the parameter name (stub_year, stub_month, stub_day, stub_hour, stub_minute) |
| $get_also | boolean | No | No | False | N/A | N/A | Whether to allow over get parameters also |
| $do_timezone_conversion | boolean | No | No | True | N/A | N/A | Whether to do timezone conversion |
Returns
- The timestamp of the date (null: no input date was chosen)
- Type: ?TIME
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Sanitise a POST inputted date, and get the Unix timestamp for the inputted date.
*
* @param ID_TEXT $stub The stub of the parameter name (stub_year, stub_month, stub_day, stub_hour, stub_minute)
* @param boolean $get_also Whether to allow over get parameters also
* @param boolean $do_timezone_conversion Whether to do timezone conversion
* @return ?TIME The timestamp of the date (null: no input date was chosen)
*/
function _post_param_date(string $stub, bool $get_also = false, bool $do_timezone_conversion = true) : ?int
* Sanitise a POST inputted date, and get the Unix timestamp for the inputted date.
*
* @param ID_TEXT $stub The stub of the parameter name (stub_year, stub_month, stub_day, stub_hour, stub_minute)
* @param boolean $get_also Whether to allow over get parameters also
* @param boolean $do_timezone_conversion Whether to do timezone conversion
* @return ?TIME The timestamp of the date (null: no input date was chosen)
*/
function _post_param_date(string $stub, bool $get_also = false, bool $do_timezone_conversion = true) : ?int

