timezone-response.dto.tsβ’831 B
import { ApiProperty } from '@nestjs/swagger'
export class TimezoneResponseDto {
@ApiProperty({
description: 'IANA timezone identifier',
example: 'America/New_York',
type: String,
})
timezone!: string
@ApiProperty({
description: 'ISO 8601 datetime in the local timezone with offset',
example: '2025-10-17T13:47:23-04:00',
type: String,
})
datetime_local!: string
@ApiProperty({
description: 'ISO 8601 datetime in UTC',
example: '2025-10-17T17:47:23.345Z',
type: String,
})
datetime_utc!: string
@ApiProperty({
description: 'Timezone offset from UTC',
example: '-04:00',
type: String,
})
timezone_offset!: string
@ApiProperty({
description: 'Unix timestamp in milliseconds',
example: 1760723243345,
type: Number,
})
timestamp!: number
}