From 902fae3681b1885a0f12b3565fcebe0044f429fa Mon Sep 17 00:00:00 2001 From: SerhiiCho Date: Sun, 16 Jan 2022 16:23:05 +0200 Subject: [PATCH] Converted second html table to markdown in README.md --- README.md | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 002728c..2eef510 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Serhii\Ago\Lang::set('ru'); #### Supported languages | Flag | Language | Short representation | -|------|----------|----------------------| +| --- | --- | --- | | πŸ‡¬πŸ‡§ | English | en | | πŸ‡·πŸ‡Ί | Russian | ru | | πŸ‡ΊπŸ‡¦ | Ukrainian | uk | @@ -77,32 +77,12 @@ TimeAgo::trans('now', [Option::ONLINE, Option::UPPER]); // output: ONLINE All options are available in `Serhii\Ago\Option::class` as constants. - - - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
Option::ONLINEDisplay "Online" if date interval within 60 seconds. After 60 seconds output will be the same as usually "x time ago" format.
Option::NO_SUFFIXRemove suffix from date and have "5 minutes" instead of "5 minutes ago".
Option::UPCOMINGWithout this option passed time will be subtracted from current time, but with this option it will take given time and subtract current time. It is useful if you need to display a counter for some date in future.
Option::UPPERSet output to uppercase.
+| Option | Description | +| --- | --- | +| Option::ONLINE | Display "Online" if date interval within 60 seconds. After 60 seconds output will be the same as usually "x time ago" format. | +| Option::NO_SUFFIX | Remove suffix from date and have "5 minutes" instead of "5 minutes ago". | +| Option::UPCOMING | Without this option passed time will be subtracted from current time, but with this option it will take given time and subtract current time. It is useful if you need to display a counter for some date in future. | +| Option::UPPER | Set output to uppercase. | ## Quick Start