提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author 251823 |
|
7 |
* @description 时间 |
|
8 |
* @date 2022/09/08 19:33:10 |
|
9 |
*/ |
|
10 |
public class CFG_NET_TIME_EX extends NetSDKLib.SdkStructure { |
|
11 |
/** |
|
12 |
* 年 |
|
13 |
*/ |
|
14 |
public int dwYear; |
|
15 |
/** |
|
16 |
* 月 |
|
17 |
*/ |
|
18 |
public int dwMonth; |
|
19 |
/** |
|
20 |
* 日 |
|
21 |
*/ |
|
22 |
public int dwDay; |
|
23 |
/** |
|
24 |
* 时 |
|
25 |
*/ |
|
26 |
public int dwHour; |
|
27 |
/** |
|
28 |
* 分 |
|
29 |
*/ |
|
30 |
public int dwMinute; |
|
31 |
/** |
|
32 |
* 秒 |
|
33 |
*/ |
|
34 |
public int dwSecond; |
|
35 |
/** |
|
36 |
* 毫秒 |
|
37 |
*/ |
|
38 |
public int dwMillisecond; |
|
39 |
/** |
|
40 |
* 保留字段 |
|
41 |
*/ |
|
42 |
public int[] dwReserved = new int[2]; |
|
43 |
|
|
44 |
public CFG_NET_TIME_EX() { |
|
45 |
} |
|
46 |
|
|
47 |
public String toStringTime() { |
|
48 |
return String.format("%02d/%02d/%02d %02d:%02d:%02d.%02d", dwYear, dwMonth, dwDay, dwHour, dwMinute, dwSecond,dwMillisecond); |
|
49 |
} |
|
50 |
} |