I\'m trying to do the following:
try { // just an example $time = \'wrong datatype\'; $timestamp = date(\"Y-m-d H:i:s\", $time); } catch (Ex
try { // call a success/error/progress handler } catch (\Throwable $e) { // For PHP 7 // handle $e } catch (\Exception $e) { // For PHP 5 // handle $e }