Home | History | Annotate | Download | only in packet

Lines Matching refs:utc

68     private String utc = null;
89 // Convert local time to the UTC time.
90 utc = utcFormat.format(new Date(
100 if (utc == null) {
106 // Convert the UTC time to local time.
107 cal.setTime(new Date(utcFormat.parse(utc).getTime() +
123 // Convert local time to UTC time.
124 utc = utcFormat.format(new Date(
129 * Returns the time as a UTC formatted String using the format CCYYMMDDThh:mm:ss.
131 * @return the time as a UTC formatted String.
134 return utc;
138 * Sets the time using UTC formatted String in the format CCYYMMDDThh:mm:ss.
140 * @param utc the time using a formatted String.
142 public void setUtc(String utc) {
143 this.utc = utc;
166 * Returns the local (non-utc) time in human-friendly format.
186 if (utc != null) {
187 buf.append("<utc>").append(utc).append("</utc>");