Debian Codegraph @

node/@patternfly/patternfly/docs/components/Timestamp/examples/Timestamp.md

raw
1 ---
2 id: Timestamp
3 section: components
4 cssPrefix: pf-v6-c-timestamp
5 ---## Examples
6
7 ### Basic
8
9 ```html
10 <span class="pf-v6-c-timestamp">
11 <time
12 class="pf-v6-c-timestamp__text"
13 datetime="2019-01-21T21:38"
14 >Thursday, 21 January 2019, 9:38 PM EST</time>
15 </span>
16
17 <br />
18 <br />
19
20 <span class="pf-v6-c-timestamp">
21 <time
22 class="pf-v6-c-timestamp__text"
23 datetime="2019-01-21T21:38"
24 >21 January 2019, 9:38 PM EST</time>
25 </span>
26
27 <br />
28 <br />
29
30 <span class="pf-v6-c-timestamp">
31 <time
32 class="pf-v6-c-timestamp__text"
33 datetime="2019-01-21T21:38"
34 >21 Jan. 2019, 9:38 PM EST</time>
35 </span>
36
37 <br />
38 <br />
39
40 <span class="pf-v6-c-timestamp">
41 <time class="pf-v6-c-timestamp__text" datetime="2022-07-15T10:00">1 hour ago</time>
42 </span>
43
44 <br />
45 <br />
46
47 <span class="pf-v6-c-timestamp">
48 <time class="pf-v6-c-timestamp__text" datetime="2022-07-21">Tomorrow</time>
49 </span>
50
51 <br />
52 <br />
53
54 <span class="pf-v6-c-timestamp pf-m-help-text">
55 <time class="pf-v6-c-timestamp__text" datetime="2022-07-21">Tomorrow</time>
56 </span>
57
58 ```
59
60 ## Documentation
61
62 ### Usage
63
64 | Class | Applied to | Outcome |
65 | -- | -- | -- |
66 | `.pf-v6-c-timestamp` | `<span>` | Creates a timestamp. **Required** |
67 | `.pf-v6-c-timestamp__text` | `<time>` | Creates the visual text of the timestamp. **Required** |
68 | `.pf-m-help-text`| `.pf-v6-c-timestamp` | Modifies styling for a timestamp that has help text. |