useTime is a custom hook/function that provides a time picker modal functionality. It returns an object with methods to interact with the time picker.

  • Returns () => { then: (onData: Fn) => void; toPromise: () => Promise<any> }

    • A function that returns an object with methods.