You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
385 B
PHP
19 lines
385 B
PHP
<?php
|
|
|
|
namespace BusinessLogic;
|
|
|
|
|
|
class DateTimeHelpers {
|
|
static function heskDate($heskSettings, $dt = '', $isStr = true, $return_str = true) {
|
|
|
|
if (!$dt) {
|
|
$dt = time();
|
|
} elseif ($isStr) {
|
|
$dt = strtotime($dt);
|
|
}
|
|
|
|
// Return formatted date
|
|
return $return_str ? date($heskSettings['timeformat'], $dt) : $dt;
|
|
|
|
}
|
|
} |