src/CFPropertyList/CFDate.php
public function setValue($value, $format = CFDate::TIMESTAMP_UNIX)
    {
        if ($format == CFDate::TIMESTAMP_UNIX) {
            $this->value = $value;
        } else {
            $this->value = $value + CFDate::DATE_DIFF_APPLE_UNIX;
        }
    }
public function setValue($value, $format = CFDate::TIMESTAMP_UNIX)
    {
        if ($format == CFDate::TIMESTAMP_UNIX) {
            $this->value = $value;
        } else {
            $this->value = $value + CFDate::DATE_DIFF_APPLE_UNIX;
        }
    }
public function setValue ( $ value , $ format = CFDate :: TIMESTAMP_UNIX ) { if ( $ format == CFDate :: TIMESTAMP_UNIX ) { $ this -> value = $ value ; } else { $ this -> value = $ value + CFDate :: DATE_DIFF_APPLE_UNIX ; } }
Set the Date CFType's value.
@param integer $value timestamp to set
@param integer $format format the timestamp is specified in, use {@link TIMESTAMP_APPLE} or {@link TIMESTAMP_UNIX}, defaults to {@link TIMESTAMP_UNIX}
@return void
@uses TIMESTAMP_APPLE to determine timestamp type
@uses TIMESTAMP_UNIX to determine timestamp type
@uses DATE_DIFF_APPLE_UNIX to convert Apple-timestamp to Unix-timestamp
Set the Date CFType s value .