|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-11 16:26 UTC] diana dot woodhouse at unc dot edu
[2008-07-07 19:55 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Description: ------------ Would be nice if DateTime had some sort of differences functions. Something that could get around the 2038 issue of this: $diffTime = strtotime($endDateString) - strtotime($startDateString) may be something like this: $endDateString = new DateTime("@$X"); $diffTime = $endDateString->difference("@$Y");