Skip to content

Commit f0de562

Browse files
committed
v2.1.0
1 parent 6e6d3fc commit f0de562

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Time.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ function date($zone=null,$relation=null){
103103
function setZone($zone){
104104
return parent::setTimezone($this->getZone($zone));
105105
}
106+
/// see instance_diff
107+
function diff($time,$zone=null,$absolute=null){
108+
return $this->instance_diff($time,$zone,$absolute);
109+
}
106110
///get DateInterval object based on current Time instance.
107111
/**
108112
@param time see Time::__construct()

0 commit comments

Comments
 (0)