private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
public static Date getDate() { return new Date(currentTimeMillis()); }
public static LocalDateTime getLocalDateTime() { return now(); }
public SessionInfo() { this(SystemTime.getUtcCalendar(), 1, 1); }
private void log(String message, String type) { out.println("<" + UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis) + ", " + sessionID + ", " + type + "> (" + message + ")"); }
private void insertSendingTime(Message.Header header) { header.setUtcTimeStamp(SendingTime.FIELD, SystemTime.getLocalDateTime(), getTimestampPrecision()); }
public SessionInfo() { this(SystemTime.getUtcCalendar(), 1, 1); }
private void writeTimeStamp(OutputStream out) throws IOException { String formattedTime = UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis); //i18n_datetime out.write(formattedTime.getBytes()); out.write(TIME_STAMP_DELIMETER); }
private void insertSendingTime(Message.Header header) { header.setUtcTimeStamp(SendingTime.FIELD, SystemTime.getLocalDateTime(), getTimestampPrecision()); }
public static Date getDate() { return new Date(currentTimeMillis()); }
public SessionInfo() { this(SystemTime.getUtcCalendar(), 1, 1); }
private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
private void log(String message, String type) { out.println("<" + UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis) + ", " + sessionID + ", " + type + "> (" + message + ")"); }
public static LocalDateTime getLocalDateTime() { return now(); }
public static Date getDate() { return new Date(currentTimeMillis()); }
public static Calendar getUtcCalendar(Date date) { Calendar c = getUtcCalendar(); c.setTime(date); return c; }
private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
private void log(String message, String type) { out.println("<" + UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis) + ", " + sessionID + ", " + type + "> (" + message + ")"); }
public static Calendar getUtcCalendar() { Calendar c = Calendar.getInstance(SystemTime.UTC_TIMEZONE); c.setTimeInMillis(currentTimeMillis()); return c; }
public static Calendar getUtcCalendar(long time) { Calendar c = getUtcCalendar(); c.setTimeInMillis(time); return c; }