All Questions
Tagged with php-internals datetime
3
questions
1
vote
0
answers
76
views
Explanation on year format behaviour for PHP DateTime
Using ISO 8601 to manage date and time formats I'm in trouble dealing with "year only" dates.
Example : new DateTime(2013); give me:
DateTime Object
(
[date] => 2017-11-27 20:13:00.000000
...
19
votes
7
answers
3k
views
print_r() adds properties to DateTime objects [duplicate]
Consider the following code sample:
$m_oDate = new DateTime('2013-06-12 15:54:25');
print_r($m_oDate);
echo $m_oDate->date;
Since PHP 5.3, this produces (something like) the following output:
...
1
vote
1
answer
382
views
Date, Time, DSL and Timezone information handling
Timezone and Daylight Savings information can change without notice. A simple piece of legislation could alter DSL for an area and render datetime information useless for a certain area on the globe, ...