Skip to content

Commit

Permalink
Converted second html table to markdown in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiCho committed Jan 16, 2022
1 parent 09487aa commit 902fae3
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Serhii\Ago\Lang::set('ru');
#### Supported languages

| Flag | Language | Short representation |
|------|----------|----------------------|
| --- | --- | --- |
| 🇬🇧 | English | en |
| 🇷🇺 | Russian | ru |
| 🇺🇦 | Ukrainian | uk |
Expand Down Expand Up @@ -77,32 +77,12 @@ TimeAgo::trans('now', [Option::ONLINE, Option::UPPER]); // output: ONLINE

All options are available in `Serhii\Ago\Option::class` as constants.

<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Option::ONLINE</td>
<td>Display "Online" if date interval within 60 seconds. After 60 seconds output will be the same as usually "x time ago" format.</td>
</tr>
<tr>
<td>Option::NO_SUFFIX</td>
<td>Remove suffix from date and have "5 minutes" instead of "5 minutes ago".</td>
</tr>
<tr>
<td>Option::UPCOMING</td>
<td>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.</td>
</tr>
<tr>
<td>Option::UPPER</td>
<td>Set output to uppercase.</td>
</tr>
</tbody>
</table>
| 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

Expand Down

0 comments on commit 902fae3

Please sign in to comment.