__construct()
__construct(string $time = null, string $object = null)
Initialize instance
Parameters
string | $time | |
string | $object |
Extends DateTime class to extend functionality
diff(\DateTimeInterface $object, boolean $absolute = null) : \Spork\DateTime\DateInterval
Override function to return Spork/DateTime/DateInterval instance.
\DateTimeInterface | $object | |
boolean | $absolute |
elapsed(boolean $absolute = null) : \Spork\DateTime\DateInterval
Measure the amount of time elapsed from this DateTime to now.
boolean | $absolute |