(dateTime: CalendarDateTime | ZonedDateTime)
| 331 | |
| 332 | /** Extracts the time components from a value containing a date and time. */ |
| 333 | export function toTime(dateTime: CalendarDateTime | ZonedDateTime): Time { |
| 334 | return new Time(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond); |
| 335 | } |
| 336 | |
| 337 | /** Converts a date from one calendar system to another. */ |
| 338 | export function toCalendar<T extends AnyCalendarDate>(date: T, calendar: Calendar): T { |
no outgoing calls
no test coverage detected