Project

General

Profile

Actions

Task #56651

closed

Move date/time utility methods to own class

Added by Bernhard Kraft about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2014-03-07
Due date:
% Done:

50%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

There are date/datetime/time utility methods spread all around the core. Some are implemented in BackendUtility, others in GeneralUtility and maybe even at other locations.

Those methods should get moved to the new "DateTimeUtility" class introduced by patch/review:
forge.typo3.org/issues/56200
https://review.typo3.org/#/c/28157/1,publish

Additionally there are bugfix patches/reviews for fixing leap year issues of the "calcAge" method:
http://forge.typo3.org/issues/20016
https://review.typo3.org/#/c/24635/
Those would have to get rebased


Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #23056: Rename t3lib_BEfunc::time and introduce new functionClosed2010-06-30

Actions
Follows TYPO3 Core - Task #56200: Clean up duplicated code in calcAgeClosed2014-02-21

Actions
Actions

Also available in: Atom PDF