PHP Class Box\Spout\Reader\XLSX\Helper\DateFormatHelper

Show file Open project: box/spout

Public Methods

Method Description
toPHPDateFormat ( string $excelDateFormat ) : string Converts the given Excel date format to a format understandable by the PHP date function.

Private Methods

Method Description
has12HourFormatMarker ( string $excelDateFormat ) : boolean

Method Details

toPHPDateFormat() public static method

Converts the given Excel date format to a format understandable by the PHP date function.
public static toPHPDateFormat ( string $excelDateFormat ) : string
$excelDateFormat string Excel date format
return string PHP date format (as defined here: http://php.net/manual/en/function.date.php)