Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Clock

Live clock with a digital or analog face, optionally pinned to an IANA timezone.

ComponentsClock
datainteractive
<arc-clock>

Overview

Clock shows the current time and updates once a second, from one interval that starts on connect and is cleared on disconnect. `variant` picks the face. The digital face sets the time in `var(--font-mono)` with tabular numerals, so the digits change without the layout shifting. The analog face is an SVG dial with a tick for every minute (longer ones at the hours), hour and minute hands in the primary text color, and an accent second hand with a soft glow. Both faces take the same attributes. `timezone` takes an IANA name such as "Asia/Tokyo" and defaults to the viewer's zone. An unrecognized name falls back to local time without throwing. `show-seconds` adds seconds to the digital time or a second hand to the dial. On the digital face, `hour12` forces 12-hour time (set the property to `false` for 24-hour, or leave it unset to follow the viewer's locale), and `show-timezone` adds the zone abbreviation in muted text. `label` puts a caption in the accent gradient under the face. Labeled clocks side by side make a row of world clocks. Screen readers ignore the face. The time, with the label and zone when present, is visually hidden text that updates each tick with no `aria-live`, so a screen reader can ask for the time without hearing it every second. The analog hands jump once a second with no sweep, so there's no motion for reduced-motion settings to stop. The server renders a valid static face (a dash on the digital face, hands at twelve on the dial), and hydration swaps in the live time without a layout shift.

Guidelines

Do

  • Use it for the current time in a dashboard header, a status bar or a row of world clocks
  • Label each clock when there's more than one on screen
  • Set timezone for team or ops views where "local" is ambiguous
  • Turn on show-seconds when the seconds matter, as on an ops console, and leave it off otherwise
  • Use the analog face where the time is background information and the digital face where people read it exactly

Don't

  • Don't use it to count down to a deadline. Use CountdownTimer, which fires an event at zero
  • Don't use it to say when something happened. Use TimeAgo, which renders phrases like "3 minutes ago"
  • Don't put many clocks with seconds on one page. Each ticks every second and they compete for attention
  • Don't force hour12 for a mixed-locale audience without a reason. The locale default is usually right
  • Don't rely on the displayed time for anything transactional. It is the viewer's device clock, not a server clock

Features

  • The second hand's color and glow come from the base accent tokens

Preview

Usage

This component needs JavaScript. Use the Web Component or a framework wrapper.

<!-- Local time, digital -->
<arc-clock show-seconds></arc-clock>

<!-- Analog face with the accent second hand -->
<arc-clock variant="analog" show-seconds></arc-clock>

<!-- Pinned to a timezone, with the muted zone abbreviation -->
<arc-clock
  timezone="Asia/Tokyo"
  label="Tokyo"
  show-timezone
></arc-clock>

<!-- Forced 12-hour display; to force 24-hour, set the hour12
     property to false from a framework or script -->
<arc-clock timezone="UTC" label="UTC" hour12></arc-clock>

API

timezonestring''
IANA timezone name (e.g. "Asia/Tokyo"). Defaults to the viewer's local timezone; an unrecognized value falls back to local.
labelstring''
Optional caption rendered under the face.
variant'digital' | 'analog''digital'
Which face to render. Digital shows a mono-spaced time string; analog shows an SVG dial with hands.
showSecondsbooleanfalse
Show seconds on the digital face, or the second hand on the analog face.
hour12booleanfalse
Force 12-hour display on the digital face. When unset, the viewer's locale decides. Set the property to false to force 24-hour display.
showTimezonebooleanfalse
Render the timezone abbreviation, muted, beside the digital time.

See also