Changeset View
Changeset View
Standalone View
Standalone View
src/future/aws/PhutilAWSv4Signature.php
Show All 22 Lines | final class PhutilAWSv4Signature extends Phobject { | ||||
public function setDate($date) { | public function setDate($date) { | ||||
$this->date = $date; | $this->date = $date; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getDate() { | public function getDate() { | ||||
if ($this->date === null) { | if ($this->date === null) { | ||||
$this->date = date('c'); | $this->date = gmdate('Ymd\THis\Z', time()); | ||||
} | } | ||||
return $this->date; | return $this->date; | ||||
} | } | ||||
public function setRegion($region) { | public function setRegion($region) { | ||||
$this->region = $region; | $this->region = $region; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines |