const TagLengthString = require("../tagLengthString");

class TimeStamp extends TagLengthString {
    constructor(tag) {
        const milisecondTimeStamp = Math.floor(Date.now());
        const timeStamp = new TimeStampMiliSecond("00", milisecondTimeStamp);
        const value = timeStamp.toString();

        super(tag, value);
    }
}

class TimeStampMiliSecond extends TagLengthString {
    constructor(tag, value) {
        super(tag, value)
    }
}

module.exports = TimeStamp;
