This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model\Table; | |
use Cake\ORM\Query; | |
use Cake\ORM\RulesChecker; | |
use Cake\ORM\Table; | |
use Cake\Validation\Validator; | |
/** | |
* Cars Model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// value in database and in user entity "end": "2083-08-19T19:22:07+0000" | |
// code from a controller (not user one) | |
use Cake\I18n\Time; | |
$duration='12'; | |
$time = new Time(); | |
$time = new Time(); | |
if(!$user->finish()){ | |
$time = Time::now(); |
NewerOlder