Skip to main content Red Hat Design System logo Contribute on Github v1.4.5

Timestamp

Overview Style Guidelines Code Demos Accessibility

Installation

Usage

<rh-timestamp></rh-timestamp>

rh-timestamp

Slots 0

None

Attributes 8
DOM Property Description Type Default
dateFormat

Custom date formatting style. See MDN for options.

DateTimeFormat | undefined
unknown
timeFormat

Custom time formatting style. See MDN for options.

DateTimeFormat | undefined
unknown
displaySuffix

Text to display after the timestamp

string | undefined
unknown
locale

Overrides the runtime's default locale

string | undefined
unknown
relative

Formats a timestamp in realtive terms

boolean | undefined
unknown
utc

Sets the timezone as UTC

boolean | undefined
unknown
hour12

Whether to use 12-hour time (as opposed to 24-hour time)

boolean | undefined
unknown
date

A string value representing a date

unknown
unknown
Methods 0

None

Events 0

None

CSS Shadow Parts 0

None

CSS Custom Properties 0

None

Design Tokens 0

None

© 2021-2024 Red Hat, Inc. Deploys by Netlify