public function setCreatedAt($time)
    {
        if ($time instanceof \DateTimeInterface) {
            $time = $time->format(DATE_RFC3339);
        }

        $this->setValue('date', (string) $time);
    }
public function setCreatedAt($time)
    {
        if ($time instanceof \DateTimeInterface) {
            $time = $time->format(DATE_RFC3339);
        }

        $this->setValue('date', (string) $time);
    }
public function setCreatedAt ( $ time ) { if ( $ time instanceof \ DateTimeInterface ) { $ time = $ time -> format ( DATE_RFC3339 ) ; } $ this -> setValue ( 'date' , ( string ) $ time ) ; }
Set creation date and time.

@param \DateTimeInterface|string $time

@since 0.1
Set creation date and time .