IT. Expert System.

PHP

Returns associative array with detailed info about given date


date_parse

(PHP 5 >= 5.2.0)

date_parseReturns associative array with detailed info about given date

Description

array date_parse ( string $date )

Parameters

date

Date in format accepted by strtotime().

Return Values

Returns array with information about the parsed date on success or FALSE on failure.

Errors/Exceptions

In case the date format has an error, the element 'errors' will contains the error messages.

Examples

Example #1 A date_parse() example

<?php
print_r
(date_parse("2006-12-12 10:00:00.5"));
?>

The above example will output:

 Array (  [year] => 2006  [month] => 12  [day] => 12  [hour] => 10  [minute] => 0  [second] => 0  [fraction] => 0.5  [warning_count] => 0  [warnings] => Array()  [error_count] => 0  [errors] => Array()  [is_localtime] => ) 

See Also



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 778 / . Delta: 0.03409 с