x
1
<relative-time datetime="2024-11-07 08:50:55 +0000" data-view-component="true">November 7, 2024 08:50</relative-time>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
render(Primer::Beta::RelativeTime.new( tense: tense, prefix: prefix, second: second, minute: minute, hour: hour, weekday: weekday, day: day, month: month, year: year, time_zone_name: time_zone_name, threshold: threshold, precision: precision, format: format, format_style: format_style, datetime: datetime, lang: lang, title: title ))
No notes provided.
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
app/components/primer/beta/relative_time.ts
1
import '@github/relative-time-element'