mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 21:20:58 +00:00
13 lines
388 B
JavaScript
13 lines
388 B
JavaScript
'use client';
|
|
import { timeToSeconds } from '../TimePicker/utils/time-to-seconds/time-to-seconds.mjs';
|
|
|
|
function isTimeBefore(value, compareTo) {
|
|
return timeToSeconds(value) < timeToSeconds(compareTo);
|
|
}
|
|
function isTimeAfter(value, compareTo) {
|
|
return timeToSeconds(value) > timeToSeconds(compareTo);
|
|
}
|
|
|
|
export { isTimeAfter, isTimeBefore };
|
|
//# sourceMappingURL=compare-time.mjs.map
|