File: Timestamp.md

package info (click to toggle)
cockpit-podman 120-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 271,812 kB
  • sloc: javascript: 695,724; cpp: 11,141; python: 7,762; sh: 901; makefile: 156; xml: 90
file content (68 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
id: Timestamp
section: components
cssPrefix: pf-v6-c-timestamp
---## Examples

### Basic

```html
<span class="pf-v6-c-timestamp">
  <time
    class="pf-v6-c-timestamp__text"
    datetime="2019-01-21T21:38"
  >Thursday, 21 January 2019, 9:38 PM EST</time>
</span>

<br />
<br />

<span class="pf-v6-c-timestamp">
  <time
    class="pf-v6-c-timestamp__text"
    datetime="2019-01-21T21:38"
  >21 January 2019, 9:38 PM EST</time>
</span>

<br />
<br />

<span class="pf-v6-c-timestamp">
  <time
    class="pf-v6-c-timestamp__text"
    datetime="2019-01-21T21:38"
  >21 Jan. 2019, 9:38 PM EST</time>
</span>

<br />
<br />

<span class="pf-v6-c-timestamp">
  <time class="pf-v6-c-timestamp__text" datetime="2022-07-15T10:00">1 hour ago</time>
</span>

<br />
<br />

<span class="pf-v6-c-timestamp">
  <time class="pf-v6-c-timestamp__text" datetime="2022-07-21">Tomorrow</time>
</span>

<br />
<br />

<span class="pf-v6-c-timestamp pf-m-help-text">
  <time class="pf-v6-c-timestamp__text" datetime="2022-07-21">Tomorrow</time>
</span>

```

## Documentation

### Usage

| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-c-timestamp` | `<span>` | Creates a timestamp. **Required** |
| `.pf-v6-c-timestamp__text` | `<time>` | Creates the visual text of the timestamp. **Required** |
| `.pf-m-help-text`| `.pf-v6-c-timestamp` | Modifies styling for a timestamp that has help text. |