human_to_unix([$datestr = ''])
Parameters: |
|
---|---|
Returns: |
UNIX timestamp or FALSE on failure |
Return type: |
int |
The opposite of the unix_to_time()
function. Takes a “human” time as input and returns it as a UNIX timestamp. This is useful if you accept “human” formatted dates submitted via a form. Returns boolean FALSE date string passed to it is not formatted as indicated above.
Example:
$now = time(); $human = unix_to_human($now); $unix = human_to_unix($human);
Please login to continue.