(hour: number, minute: number)
| 9 | const SUPPORT_TEXT_COLOR = !__VISIONOS__ && parseFloat(Device.osVersion) < 14.0; |
| 10 | |
| 11 | function getDate(hour: number, minute: number): Date { |
| 12 | const components = NSDateComponents.alloc().init(); |
| 13 | components.hour = hour; |
| 14 | components.minute = minute; |
| 15 | |
| 16 | return NSCalendar.currentCalendar.dateFromComponents(<any>components); |
| 17 | } |
| 18 | |
| 19 | function getComponents(date: Date | NSDate): NSDateComponents { |
| 20 | return NSCalendar.currentCalendar.componentsFromDate(NSCalendarUnit.CalendarUnitHour | NSCalendarUnit.CalendarUnitMinute, <any>date); |
no test coverage detected