-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDateHelper.php
More file actions
44 lines (39 loc) · 953 Bytes
/
DateHelper.php
File metadata and controls
44 lines (39 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* DateHelper Helper
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Kotaro Hokada <kotaro.hokada@gmail.com>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
App::uses('AppHelper', 'View/Helper');
App::uses('Validation', 'Utility');
App::uses('NetCommonsTimeHelper', 'NetCommons.View/Helper');
/**
* DateHelper Helper
*
* @author Kotaro Hokada <kotaro.hokada@gmail.com>
* @package NetCommons\NetCommons\View\Helper
*/
class DateHelper extends AppHelper {
/**
* use helpers
*
* @var array
*/
public $helpers = array(
'NetCommons.NetCommonsTime',
);
/**
* Date Format
*
* @param datetime $date datetime
* @param null|string $format フォーマット
* @return array
*/
public function dateFormat($date, $format = null) {
return $this->NetCommonsTime->dateFormat($date, $format);
}
}