Flow\Helper::date PHP Méthode

date() public static méthode

public static date ( $obj = null, $format = 'Y-m-d' )
    public static function date($obj = null, $format = 'Y-m-d')
    {
        return date($format, $obj ?: time());
    }

Usage Example

Exemple #1
0
 public function test_date()
 {
     $time = time();
     $now = date('Y-m-d', $time);
     $this->assertEquals($now, Helper::date());
     $this->assertEquals($now, Helper::date($time));
 }