/*! @azure/msal-node-extensions v1.5.17 2025-07-08 */
'use strict';
/*! @azure/msal-common v15.8.1 2025-07-08 */
/**
 * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).
 * @param seconds
 */
function toDateFromSeconds(seconds) {
    if (seconds) {
        return new Date(Number(seconds) * 1000);
    }
    return new Date();
}

export { toDateFromSeconds };
//# sourceMappingURL=TimeUtils.mjs.map
