Skip to content

Interface: GetTimestampProps

Defined in: packages/sdk/src/utils/getTimestamp.ts:180

Options for generating a timestamp string.

Properties

PropertyTypeDescriptionDefined in
date?DateThe date to format. Defaults to the current date.packages/sdk/src/utils/getTimestamp.ts:182
includeDay?booleanInclude the day. Defaults to true.packages/sdk/src/utils/getTimestamp.ts:184
includeHours?booleanInclude the hours. Defaults to true.packages/sdk/src/utils/getTimestamp.ts:186
includeMinutes?booleanInclude the minutes. Defaults to true.packages/sdk/src/utils/getTimestamp.ts:188
includeMonth?booleanInclude the month. Defaults to true.packages/sdk/src/utils/getTimestamp.ts:190
includeSeconds?booleanInclude the seconds. Defaults to true.packages/sdk/src/utils/getTimestamp.ts:192
includeYear?booleanInclude the year. Defaults to true.packages/sdk/src/utils/getTimestamp.ts:194
separator?stringThe character used to separate date parts. Defaults to '-'.packages/sdk/src/utils/getTimestamp.ts:196
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/sdk/src/utils/getTimestamp.ts:202
useLocalTimezone?booleanUse the system's local timezone instead of UTC. Defaults to false.packages/sdk/src/utils/getTimestamp.ts:204

Matterway Assistant SDK Documentation