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 ; } }