| 1 | <?php |
||
| 5 | class DateTime extends Field |
||
| 6 | { |
||
| 7 | protected $type = 'datetime'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Make a new instance of a field. |
||
| 11 | * |
||
| 12 | * @param string $name |
||
| 13 | * @param string $label |
||
| 14 | * @return Field|\DateTime |
||
| 15 | */ |
||
| 16 | public static function make($name, $label = '') |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Set format to military time (24 hrs). |
||
| 23 | * |
||
| 24 | * @return Field|Time |
||
| 25 | */ |
||
| 26 | public function military() |
||
| 30 | } |
||
| 31 |