| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| try { | ||
| new DatePeriod($date, new DateInterval('P1D'), 2); | ||
| } catch (Error $e) { | ||
| echo get_class($e), ': ', $e->getMessage(), "\n"; |
There was a problem hiding this comment.
This (and following) safe us a function call; not style-only.
Sorry, something went wrong.
| c(Asia/Tokyo): 2015-4-1 <--> 2015-4-29 | ||
| int(0) | ||
| int(28) | ||
|
|
There was a problem hiding this comment.
This (and following) removes double empty last line.
Sorry, something went wrong.
| var_dump( timezone_offset_get($tz, $invalid_obj) ); | ||
| } catch (Error $ex) { | ||
| var_dump($ex->getMessage()); | ||
| echo "\n"; |
There was a problem hiding this comment.
Bloat.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Asserts error class; extracted from: #22799