Skip to content

Interface: GetTimestampProps

Defined in: packages/shared/lib/time/getTimestamp.d.ts:21

Options for generating a timestamp string.

Properties

PropertyTypeDescriptionDefined in
date?DateThe date to format. Defaults to the current date.packages/shared/lib/time/getTimestamp.d.ts:23
includeDay?booleanInclude the day. Defaults to true.packages/shared/lib/time/getTimestamp.d.ts:25
includeHours?booleanInclude the hours. Defaults to true.packages/shared/lib/time/getTimestamp.d.ts:27
includeMinutes?booleanInclude the minutes. Defaults to true.packages/shared/lib/time/getTimestamp.d.ts:29
includeMonth?booleanInclude the month. Defaults to true.packages/shared/lib/time/getTimestamp.d.ts:31
includeSeconds?booleanInclude the seconds. Defaults to true.packages/shared/lib/time/getTimestamp.d.ts:33
includeYear?booleanInclude the year. Defaults to true.packages/shared/lib/time/getTimestamp.d.ts:35
separator?stringThe character used to separate date parts. Defaults to '-'.packages/shared/lib/time/getTimestamp.d.ts:37
timezone?TimezoneTimezone to format the date in. Accepts an IANA identifier (e.g. 'Asia/Kolkata') or a common abbreviation (e.g. 'IST', 'CET'). Overrides useLocalTimezone when set.packages/shared/lib/time/getTimestamp.d.ts:43
useLocalTimezone?booleanUse the system's local timezone instead of UTC. Defaults to false.packages/shared/lib/time/getTimestamp.d.ts:45

Matterway Assistant SDK Documentation