diff options
| author | EoleDev <root@serverpc.home> | 2016-03-09 15:36:02 +0100 |
|---|---|---|
| committer | EoleDev <root@serverpc.home> | 2016-03-09 15:36:02 +0100 |
| commit | c479658f0bb953ded4b29ca573404a318f1e798f (patch) | |
| tree | f4c4fa4b7e245abd462794df5b6525ed41306e77 /server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php | |
| parent | 5c6f6c97b7b906476ad5b9ed193e0140dd66f977 (diff) | |
New Library
Diffstat (limited to 'server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php')
| -rw-r--r-- | server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php b/server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php new file mode 100644 index 0000000..512ba30 --- /dev/null +++ b/server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php @@ -0,0 +1,16 @@ +<?php + +namespace OpenCloud\Test\Common; + +class DateTime extends \DateTime +{ + public static function factory($time) + { + return new static($time); + } + + public function toIso8601() + { + return $this->format(self::ISO8601); + } +} |
