Google\Cloud\BigQuery\Date::formatAsString PHP 메소드

formatAsString() 공개 메소드

Format the value as a string.
public formatAsString ( ) : string
리턴 string
    public function formatAsString()
    {
        return $this->value->format(self::FORMAT);
    }

Usage Example

예제 #1
0
 public function testStringFormatting()
 {
     $value = new \DateTime();
     $date = new Date($value);
     $expected = $value->format('Y-m-d');
     $this->assertEquals($expected, (string) $date);
     $this->assertEquals($expected, $date->formatAsString());
 }