Skip to content

Commit fd11fb4

Browse files
committed
Add documentation
1 parent b8b7005 commit fd11fb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/development/legacy/libraries/localization.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,14 @@ Similar to PHP's `strtotime()`, the Localize class provides a way to take a pre-
7474

7575
## Human-readable time
7676

77-
### `human_time([$timestamp = NULL[, $localize = TRUE[, $seconds = FALSE]]])`
77+
### `human_time([$timestamp = NULL[, $localize = TRUE[, $seconds = FALSE[, $include_time = TRUE]]]])`
7878

7979
| Parameter | Type | Description |
8080
| ----------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8181
| \$timestamp | `Integer` | Unix timestamp |
8282
| \$localize | `Boolean` | Boolean of whether to use the current member's timezone for localization (TRUE), or to use GMT (FALSE); or string of PHP timezone to use for the localization |
8383
| \$seconds | `Boolean` | Whether or not to include seconds, overrides `include_seconds` hidden config |
84+
| \$include_time | `Boolean` | Whether or not to include time |
8485
| Returns | `String` | Human-readable date |
8586

8687
Returns a common human-readable date format conforming to ExpressionEngine's [default time formatting setting](control-panel/settings/general.md). This method is most commonly used to express dates in the control panel.

0 commit comments

Comments
 (0)