How to use the @blueprintjs/datetime/lib/esm/common/timeUnit.getDefaultMinTime function in @blueprintjs/datetime

To help you get started, we’ve selected a few @blueprintjs/datetime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github palantir / blueprint / packages / docs-app / src / examples / datetime-examples / timePickerExample.tsx View on Github external
private changeMinHour = (hour: MinimumHours) => {
        let minTime = new Date(1995, 6, 30, hour);

        if (hour === MinimumHours.NONE) {
            minTime = getDefaultMinTime();
        }

        this.setState({ minTime });
    };