Appearance
Interface: GetTimestampProps
Defined in: src/utils/getTimestamp.ts:4
Options for generating a timestamp string.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
date? | Date | The date to format. Defaults to the current date. | src/utils/getTimestamp.ts:6 |
separator? | string | The character used to separate date parts. Defaults to '-'. | src/utils/getTimestamp.ts:8 |
includeYear? | boolean | Include the year. Defaults to true. | src/utils/getTimestamp.ts:10 |
includeMonth? | boolean | Include the month. Defaults to true. | src/utils/getTimestamp.ts:12 |
includeDay? | boolean | Include the day. Defaults to true. | src/utils/getTimestamp.ts:14 |
includeHours? | boolean | Include the hours. Defaults to true. | src/utils/getTimestamp.ts:16 |
includeMinutes? | boolean | Include the minutes. Defaults to true. | src/utils/getTimestamp.ts:18 |
includeSeconds? | boolean | Include the seconds. Defaults to true. | src/utils/getTimestamp.ts:20 |