public static function format(DateTimeInterface $dateTime, string $format = 'c') : string
    {
        if (empty(trim($format))) {
            throw new \InvalidArgumentException('$format is not a non-empty string');
        }

        return $dateTime->format($format);
    }