Skip to main content Red Hat Design System logo Contribute on Github v2.0.0 Home
About About the design systemHow we buildRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridPersonalization patternsSpacingTypography
Tokens Overview Global colorBox shadowTypographyBorderOpacitySpaceLengthIconBreakpointsMedia queries
Elements All elements Accordion Alert Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Call to action Card Code block Dialog Footer Health index Icon Navigation (primary)Planned Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Patterns All patternsAnnouncementCardDisclosureFilterFormLinkLink with iconLogo wallSearch barSkip navigationSticky bannerSticky cardTabsTileVideo thumbnail
Accessibility FundamentalsContentDesignDevelopmentContributorsQa and testingAssistive technologiesResources
Design/code status Release notes Get support

Timestamp

Overview Style Guidelines Code Demos Accessibility
  1. Installation
  2. Usage
  3. rh-timestamp
  1. Installation
  2. Usage
  3. rh-timestamp

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