13 lines
527 B
JavaScript
13 lines
527 B
JavaScript
"use strict";
|
|
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;
|