Changeset 58600
- Timestamp:
- 06/29/2024 09:29:08 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r58471 r58600 3857 3857 * 3858 3858 * The difference is returned in a human-readable format such as "1 hour", 3859 * "5 min s", "2 days".3859 * "5 minutes", "2 days". 3860 3860 * 3861 3861 * @since 1.5.0 … … 3886 3886 } 3887 3887 /* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes. */ 3888 $since = sprintf( _n( '%s min ', '%s mins', $mins ), $mins );3888 $since = sprintf( _n( '%s minutes', '%s minutes', $mins ), $mins ); 3889 3889 } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) { 3890 3890 $hours = round( $diff / HOUR_IN_SECONDS ); -
trunk/tests/phpunit/tests/formatting/humanTimeDiff.php
r55562 r58600 28 28 ), 29 29 array( 30 '5 min s',30 '5 minutes', 31 31 new DateTime( '2016-01-01 12:05:00' ), 32 32 'Test a difference of 5 minutes.',
Note: See TracChangeset
for help on using the changeset viewer.