Skip to content

Interface: GetTimestampProps

Defined in: src/utils/getTimestamp.ts:179

Options for generating a timestamp string.

Properties

PropertyTypeDescriptionDefined in
date?DateThe date to format. Defaults to the current date.src/utils/getTimestamp.ts:181
separator?stringThe character used to separate date parts. Defaults to '-'.src/utils/getTimestamp.ts:183
includeYear?booleanInclude the year. Defaults to true.src/utils/getTimestamp.ts:185
includeMonth?booleanInclude the month. Defaults to true.src/utils/getTimestamp.ts:187
includeDay?booleanInclude the day. Defaults to true.src/utils/getTimestamp.ts:189
includeHours?booleanInclude the hours. Defaults to true.src/utils/getTimestamp.ts:191
includeMinutes?booleanInclude the minutes. Defaults to true.src/utils/getTimestamp.ts:193
includeSeconds?booleanInclude the seconds. Defaults to true.src/utils/getTimestamp.ts:195
useLocalTimezone?booleanUse the system's local timezone instead of UTC. Defaults to false.src/utils/getTimestamp.ts:197
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.src/utils/getTimestamp.ts:203

Matterway Assistant SDK Documentation