package com.live.utils;

/**
 * @Title: 设置直播开始&结束时间
 * @Auth: zhangyumeng
 * @Time: 2020/11/3
 */

public class TimeSetting{

    public Object startTime(){
        long totalMilliSeconds = System.currentTimeMillis();
        return totalMilliSeconds;  //获取直播开始时间
    }

    public Object endTime(){
        long totalMilliSeconds1 = System.currentTimeMillis() +689216;
        return totalMilliSeconds1;   //获取直播结束时间
    }

    public static void main(String[] args) {
        TimeSetting getTime = new TimeSetting();
        getTime.startTime();
        getTime.endTime();
        System.out.println(getTime.startTime());
        System.out.println(getTime.endTime());
    }
}
