/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/formattedDateTime` component displays a formatted date and time according to the user's locale and formatting options. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-formatted-date-time/documentation |Lightning Formatted DateTime Documentation} */ declare module "lightning/formattedDateTime" { import { LightningElement } from "lwc"; /** * The `lightning/formattedDateTime` component displays a formatted date and time according to the user's locale and formatting options. */ export default class LightningFormattedDateTime extends LightningElement { /** The value to format. Can be a Date object, a number (timestamp), or a string. */ value: Date | number | string; /** The representation of the weekday. */ weekday: "narrow" | "short" | "long"; /** The representation of the era. */ era: "narrow" | "short" | "long"; /** The representation of the year. */ year: "numeric" | "2-digit"; /** The representation of the month. */ month: "2-digit" | "numeric" | "narrow" | "short" | "long"; /** The representation of the day. */ day: "numeric" | "2-digit"; /** The representation of the hour. */ hour: "numeric" | "2-digit"; /** The representation of the minute. */ minute: "numeric" | "2-digit"; /** The representation of the second. */ second: "numeric" | "2-digit"; /** The representation of the time zone name. */ timeZoneName: "short" | "long"; /** The time zone to use. */ timeZone: string; /** Whether to use 12-hour time (true) or 24-hour time (false). */ hour12: boolean; /** The date formatting style. */ dateStyle: "short" | "medium" | "long"; } }