Skip to content

formatKeptAt

Formats when a recovery copy was kept, in the user’s locale.

Import:

import { formatKeptAt } from '@mnaoumov/obsidian-lib/modals/settings-recovery-copies';

Signature:

function formatKeptAt(keptAt: number): string

Parameters:

Parameter Type Description
keptAt number When the copy was kept, in milliseconds since the Unix epoch.

Returns: string — The formatted date and time.