for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Graze\CiffRenderer\Field\Parser\DateParser\DateFormatter;
use Graze\CiffRenderer\Field\Parser\DateParser\DateFormatter\DateFormatterInterface;
use \DateTimeInterface;
class FormatterDayOfYear implements DateFormatterInterface
{
/**
* @param DateTimeInterface $date
* @param string $format
*
* @return string
*/
public function format(DateTimeInterface $date, $format)
// Clarisoft starts from 1, PHP from 0
return (string) ($date->format('z') + 1);
}