PatternFly

Timestamp

Beta

A timestamp provides consistent formats for displaying date and time values.

Info alert:Beta feature

This beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the PatternFly forum or via Slack. To learn more about the process, visit our about page or our Beta components page on GitHub.

Examples

Basic









Documentation

Usage

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

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v5-c-timestamp--pf-v5-c-timestamp--FontSize
0.875rem
.pf-v5-c-timestamp--pf-v5-c-timestamp--Color
#6a6e73
.pf-v5-c-timestamp--pf-v5-c-timestamp--OutlineOffset
0.1875rem
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--TextDecorationLine
underline
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--TextDecorationStyle
dashed
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--TextDecorationThickness
1px
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--TextUnderlineOffset
0.25rem
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--TextDecorationColor
#8a8d90
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--hover--Color
#151515
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--focus--Color
#151515
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--hover--TextDecorationColor
#151515
.pf-v5-c-timestamp--pf-v5-c-timestamp--m-help-text--focus--TextDecorationColor
#151515
.pf-v5-c-timestamp.pf-m-help-text:hover--pf-v5-c-timestamp--Color
#151515
.pf-v5-c-timestamp.pf-m-help-text:hover--pf-v5-c-timestamp--m-help-text--TextDecorationColor
#151515
.pf-v5-c-timestamp.pf-m-help-text:focus--pf-v5-c-timestamp--Color
#151515
.pf-v5-c-timestamp.pf-m-help-text:focus--pf-v5-c-timestamp--m-help-text--TextDecorationColor
#151515

View source on GitHub