1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.dy.rtuMw.server.local.localProtocol;
 
import com.dy.common.util.DateTime;
 
public class ClockDeal {
    /**
     * 查询通信中间件时钟
     */
    public ClockVo deal(){
        ClockVo c = new ClockVo() ;
        c.setClock(DateTime.yyyy_MM_dd_HH_mm_ss()) ;
        c.setYear(Integer.parseInt(DateTime.yyyy())) ;
        c.setMonth(Integer.parseInt(DateTime.MM())) ;
        c.setDate(Integer.parseInt(DateTime.dd())) ;
        c.setHour(Integer.parseInt(DateTime.HH())) ;
        c.setMinute(Integer.parseInt(DateTime.mm())) ;
        c.setSecond(Integer.parseInt(DateTime.ss())) ;
        return c ;
    }
}