@langchain/community
Version:
Third-party integrations for LangChain.js
14 lines (13 loc) • 527 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDate = exports.signedHeaders = exports.service = void 0;
exports.service = "hunyuan";
exports.signedHeaders = `content-type;host`;
const getDate = (timestamp) => {
const date = new Date(timestamp * 1000);
const year = date.getUTCFullYear();
const month = `0${(date.getUTCMonth() + 1).toString()}`.slice(-2);
const day = `0${date.getUTCDate()}`.slice(-2);
return `${year}-${month}-${day}`;
};
exports.getDate = getDate;