MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getComponents

Function getComponents

packages/core/ui/time-picker/index.ios.ts:19–21  ·  view source on GitHub ↗
(date: Date | NSDate)

Source from the content-addressed store, hash-verified

17}
18
19function getComponents(date: Date | NSDate): NSDateComponents {
20 return NSCalendar.currentCalendar.componentsFromDate(NSCalendarUnit.CalendarUnitHour | NSCalendarUnit.CalendarUnitMinute, <any>date);
21}
22
23export class TimePicker extends TimePickerBase {
24 nativeViewProtected: UIDatePicker;

Callers 2

constructorMethod · 0.85
valueChangedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected