mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
11 lines
321 B
TypeScript
11 lines
321 B
TypeScript
function makeDate(timestamp: number): Date;
|
|
function makeDate(m: number, d: number, y: number): Date;
|
|
function makeDate(mOrTimestamp: number, d?: number, y?: number): Date {
|
|
if (d !== undefined && y !== undefined) {
|
|
return new Date(y, mOrTimestamp, d);
|
|
} else {
|
|
return new Date(mOrTimestamp);
|
|
}
|
|
}
|
|
|
|
export {} |