mirror of
https://github.com/tvytlx/ai-agent-deep-dive.git
synced 2026-04-05 00:24:50 +08:00
Add extracted source directory and README navigation
This commit is contained in:
23
extracted-source/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs
generated
vendored
Normal file
23
extracted-source/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*! @azure/msal-node v3.8.1 2025-10-29 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* @internal
|
||||
* Checks if a given date string is in ISO 8601 format.
|
||||
*
|
||||
* @param dateString - The date string to be checked.
|
||||
* @returns boolean - Returns true if the date string is in ISO 8601 format, otherwise false.
|
||||
*/
|
||||
function isIso8601(dateString) {
|
||||
if (typeof dateString !== "string") {
|
||||
return false;
|
||||
}
|
||||
const date = new Date(dateString);
|
||||
return !isNaN(date.getTime()) && date.toISOString() === dateString;
|
||||
}
|
||||
|
||||
export { isIso8601 };
|
||||
//# sourceMappingURL=TimeUtils.mjs.map
|
||||
Reference in New Issue
Block a user