namibia
df0489e1eeeeab5a9bd44e1d84fce49924fe1bac
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<?php namespace Utility\Import; class DateTime implements FieldInterface { private $_dateTimeFormat = 'Y-m-d h:i:s'; public function __construct($format) { $this->_dateTimeFormat = $format; } public function parse($value) { return \DateTime::createFromFormat($this->_dateTimeFormat, $value); } } |
Commits for namibiamodule/Utility/src/Utility/Import/DateTime.php
Revision | Author | Commited | Message |
---|---|---|---|
df0489 ... | Mark | Fri 14 Oct, 2016 10:01:00 +0000 | initial commit |