CRM_Utils_Time - Prefer function names which match the stdlib counterparts
authorTim Otten <totten@civicrm.org>
Sat, 2 Jan 2021 06:20:21 +0000 (22:20 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 8 Jan 2021 05:24:46 +0000 (21:24 -0800)
commit36ca38f81784f2becf682b157722e708f453d6c5
tree450c5a1369b2dcc90e571363b6f4a8b8069fd198
parenta788e5950c82639085e051f3c0f7ee40cf9a4328
CRM_Utils_Time - Prefer function names which match the stdlib counterparts

There are a large number of calls to `time()`, `date()`, and `strtotime()`
in the codebase.  For someone doing a conversion, it's easier to understand
if the names match.

* Harder conversion
    * `time()` => `CRM_Utils_Time::getTimeRaw()`
    * `date()` => `CRM_Utils_Time::getTime()`
    * `strtotime()` => `strtotime(..., CRM_Utils_Time::getTimeRaw())`
* Easier conversion
    * `time()` => `CRM_Utils_Time::time()`
    * `date()` => `CRM_Utils_Time::date()`
    * `strtotime()` => `CRM_Utils_Time::strtotime()`
CRM/Utils/Time.php