CDateTimeParser
CDateTimeParser
Package | system.utils |
---|---|
Inheritance | class CDateTimeParser |
Since | 1.0 |
Source Code | framework/utils/CDateTimeParser.php |
CDateTimeParser converts a date/time string to a UNIX timestamp according to the specified pattern.
The following pattern characters are recognized:
The following pattern characters are recognized:
Pattern | Description ---------------------------------------------------- d | Day of month 1 to 31, no padding dd | Day of month 01 to 31, zero leading M | Month digit 1 to 12, no padding MM