Set the trace timestamp field.
103 JLabel field = fields.get(
"timestamp");
105 Calendar c = Calendar.getInstance();
106 c.setTimeInMillis(microtm / 1000);
108 int d1 = c.get(Calendar.DATE);
109 int d2 = c.get(Calendar.MONTH) + 1;
110 int d3 = c.get(Calendar.YEAR);
113 text += ((d1 < 10) ?
"0" :
"") + d1 +
"/";
114 text += ((d2 < 10) ?
"0" :
"") + d2 +
"/" + d3 +
" ";
116 int h1 = c.get(Calendar.HOUR);
117 int h2 = c.get(Calendar.MINUTE);
118 int h3 = c.get(Calendar.SECOND);
120 text += ((h1 < 10) ?
"0" :
"") + h1 +
":";
121 text += ((h2 < 10) ?
"0" :
"") + h2 +
":";
122 text += ((h3 < 10) ?
"0" :
"") + h3;