add answer, time, status helpers
This commit is contained in:
23
common/helpers/TimeHelper.php
Normal file
23
common/helpers/TimeHelper.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace common\helpers;
|
||||
|
||||
use yii\helpers\ArrayHelper;
|
||||
use yii\helpers\Html;
|
||||
|
||||
class TimeHelper
|
||||
{
|
||||
public static function limitTime($time_limit)
|
||||
{
|
||||
if ($time_limit === null)
|
||||
{
|
||||
return 'Не ограниченоTEST';
|
||||
}
|
||||
|
||||
return date("H:i:s", mktime(null, null, $time_limit)) . ' (HH:mm:ss)';
|
||||
|
||||
// $date
|
||||
// return Html::tag('span', $date, ['class' => 'label label-primary']);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user