jiazx0107@163.com
2023-11-18 f15b4feb486a85dcc3b9b5c68a8526957a6ad0bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
 
package com.fzzy.protocol.sdkhk.common;
 
/**
 * @author
 * @create 2022-03-22-11:13
 */
public class CommonUtil {
 
    //SDK时间解析
    public static String parseTime(int time) {
        int year = (time >> 26) + 2000;
        int month = (time >> 22) & 15;
        int day = (time >> 17) & 31;
        int hour = (time >> 12) & 31;
        int min = (time >> 6) & 63;
        int second = (time >> 0) & 63;
        String sTime = year + "-" + month + "-" + day + "-" + hour + ":" + min + ":" + second;
//        System.out.println(sTime);
        return sTime;
    }
 
 
}