コード例 #1
0
 private function formatMonths($months, $format = 'F')
 {
     $formatted = array();
     foreach ($months as $i => $month) {
         $timestamp = $this->date->makeTime(0, 0, 0, $month, 1, null);
         $formatted[$i] = $this->date->format($format, $timestamp);
     }
     return $formatted;
 }
コード例 #2
0
 /**
  * Test makeTime function in gregorian
  */
 public function testMakeTime()
 {
     $this->assertEquals($this->datetime->makeTime(), mktime());
 }