Bug #23056

Rename t3lib_BEfunc::time and introduce new function

Added by Georg Ringer over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-06-30
Due date:
% Done:

0%

TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The function t3lib_BEfunc::time() is used to render the age of a timestamp in hours and minutes (+ optional seconds). The function should be called timeAge like the related functions calcAge() and dateTimeAge().

Furthermore it is confusing as there are the functions date() and datetime() which render a timestamp as time.

The function time() is only used within the class t3lib_BEfunc (checked the whole core). Additional benefit beside would be to have a function similiar to date() and datetime() to render a timestamp.

(issue imported from #M14945)

14945-befunc-time-timeage.patch View (1.62 KB) Administrator Admin, 2010-06-30 14:15


Related issues

Related to TYPO3 Core - Task #20016: wrong age calculating in stdWrap New 2009-02-13
Duplicates TYPO3 Core - Task #56651: Move date/time utility methods to own class Closed 2014-03-07

History

#1 Updated by Georg Ringer over 5 years ago

  • Status changed from New to Closed
  • Target version deleted (0)
  • Is Regression set to No

i am closing this in favor of #56651

Also available in: Atom PDF