summary refs log tree commit diff
path: root/timestamp.ts
blob: cfa9a05f615ae86d7f8efedf56c4b915334fc16e (plain)
1
2
3
4
5
6
7
8
9
10
export default class Timespamp {
    js: number;
    unix: number;
    str: string;
    constructor (date: Date) {
        this.js = Number(date)
        this.unix = Math.floor(date.getTime() / 1000)
        this.str = String(date)
    }
}