PHP Class date

ファイルを表示 Open project: anchorcms/anchor-cms Class Usage Examples

Public Methods

Method Description
format ( $date, $format = null ) * Format a date as per users timezone and format
mysql ( $date ) * All database dates are stored as GMT

Method Details

format() public static method

* Format a date as per users timezone and format
public static format ( $date, $format = null )

mysql() public static method

* All database dates are stored as GMT
public static mysql ( $date )