INNER CODE UNIT · TypeScript
getTime
biaochenxuying/blog · typescript-in-action/sourcecode/ts-base/src/part2.project/07.project-references/new/src/common/index.ts:1
export function getTime() {
let time = new Date();
return `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}`
}