/**
  * @dataProvider data_tostrftime
  */
 public function test_tostrftime($input, $expect)
 {
     $this->assertEquals($expect, DateFormatConverter::toStrftime($input));
 }
예제 #2
0
 /**
  * DateTime constructor.
  *
  * @param array|null $config
  * @param string $label
  * @param bool $ismulti
  * @param int $tid
  */
 public function __construct($config = null, $label = '', $ismulti = false, $tid = 0)
 {
     global $conf;
     $this->config['format'] = DateFormatConverter::toDate($conf['dformat']);
     parent::__construct($config, $label, $ismulti, $tid);
 }