yii\db\SchemaBuilderTrait::time PHP Method

time() public method

Creates a time column.
Since: 2.0.6
public time ( integer $precision = null ) : ColumnSchemaBuilder
$precision integer column value precision. First parameter passed to the column type, e.g. TIME(precision). This parameter will be ignored if not supported by the DBMS.
return ColumnSchemaBuilder the column instance which can be further customized.
    public function time($precision = null)
    {
        return $this->getDb()->getSchema()->createColumnSchemaBuilder(Schema::TYPE_TIME, $precision);
    }