|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-07-14 17:02 UTC] thomas at landauer dot at
Description: ------------ Considering the fact that \DateTime() does support some really exotic input (like e.g. "last sat of July 2008"), it would be nice to have some quarter-related formats too: * "first|last day of last|this|next quarter" Or maybe even: * "first|last day of quarter 4 2008" or "first|last day of fourth quarter 2008" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
That would work (I'd be using "+ 3 months" and "+ 5 months"); the suggestion in the other bug you cite (#15184) for date('q') on the other hand would be useless for a year starting in June. It's the difference between "get a timestamp for a given quarter" and "get a quarter for a given timestamp". The former would actually be easier.