for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helix\DB\SQL;
/**
* Represents a text expression. Produces various transformations.
*/
class Text extends Value {
use TextTrait;
* Interpret the expression as a datetime.
*
* > Warning: If the expression is in the local timezone
* > you should chain this with {@link DateTime::toUtc()}
* SQLite:
* - The expression's value must conform to one of any `time-value` formats.
* - https://www.sqlite.org/lang_datefunc.html
* MySQL:
* - The expression's value must conform to `YYYY-MM-DD hh:mm:ss`
* @return DateTime
public function toDateTime () {
return DateTime::factory($this->db, $this);
}