Checks if Temporal is available in the current environment.
function hasTemporal(): booleanbooleanChecks if Temporal is available in the current environment.
booleanChecks if Temporal is available in the current environment.
This function checks for Temporal implementations in the following priority order:
setTemporal())import { hasTemporal, Temporal } from '@agape/temporal';
if (hasTemporal()) {
const now = Temporal.PlainDateTime.from('2025-09-19T10:00');
console.log(now.toString());
} else {
console.warn('Temporal not available, falling back to Date');
}
