简体   繁体   中英

Comparing time in yii framework

How can I comparte two time type variables in a function in the model?

Like:

first_hour -(minus) end_hour > 10 minutes

Actually, that exact operation.

尝试这个:

array('myDate', 'type', 'type' => 'date', 'message' => '{attribute}: is not a date!', 'format'=>'yyyy-M-d H:m:s')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM