summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/tests/unit/Common/DateTime.php
blob: 512ba30b7ea7f29341f25ac59f6882a33421ba48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
    }
}