# Relative Time ## Example ```svelte ``` ## Documentation ## Usage ```svelte ``` ## Sources Based on "svelte-relative-time" (https://github.com/CaptainCodeman/svelte-relative-time) ## API Reference ### RelativeTime Displays a timestamp as a human-readable relative time string (e.g. "5 minutes ago") that updates live. | Prop | Type | Default | Description | |------|------|---------|-------------| | date | `Date | number` | `-` | The date to display relative to now. Can be a Date object or a Unix timestamp. (required) | | locale | `string` | `-` | The locale for formatting (e.g. 'en', 'de'). (required) | | live | `boolean` | `true` | Whether to automatically update the displayed time. | | class | `string` | `-` | Additional CSS classes to apply. |