( dateTime: CalendarDate | CalendarDateTime, timeZone: string, disambiguation: Disambiguation = 'compatible' )
| 213 | } |
| 214 | |
| 215 | export function toDate( |
| 216 | dateTime: CalendarDate | CalendarDateTime, |
| 217 | timeZone: string, |
| 218 | disambiguation: Disambiguation = 'compatible' |
| 219 | ): Date { |
| 220 | return new Date(toAbsolute(dateTime, timeZone, disambiguation)); |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Takes a Unix epoch (milliseconds since 1970) and converts it to the provided time zone. |
no test coverage detected