/** * Gets modification time. * * @param dateFormatPattern the pattern to use when formatting the timestamp * @return the modification time (in milliseconds) */ public String getModificationTime(String dateFormatPattern) { return CommonUtils.convertMsToDate(mLastModificationTimeMs, dateFormatPattern); }
/** * Gets creation time. * * @param dateFormatPattern the pattern to use when formatting the timestamp * @return the creation time (in milliseconds) */ public String getCreationTime(String dateFormatPattern) { if (mCreationTimeMs == UIFileInfo.LocalFileInfo.EMPTY_CREATION_TIME) { return ""; } return CommonUtils.convertMsToDate(mCreationTimeMs, dateFormatPattern); }
/** * Gets start time. * * @return the start time */ public String getStartTime() { return CommonUtils.convertMsToDate(mStartTimeMs, mDateFormatPattern); }
sizeStr, persistenceState, CommonUtils.convertMsToDate(lastModifiedTime, dateFormatPattern), inAlluxioState, path); } else { return String.format(LS_FORMAT_NO_ACL, sizeStr, persistenceState, CommonUtils.convertMsToDate(lastModifiedTime, dateFormatPattern), inAlluxioState, path);
.setMasterNodeAddress(mMasterProcess.getRpcAddress().toString()).setUptime(CommonUtils .convertMsToClockTime(System.currentTimeMillis() - mMetaMaster.getStartTimeMs())) .setStartTime(CommonUtils.convertMsToDate(mMetaMaster.getStartTimeMs(), ServerConfiguration.get(PropertyKey.USER_DATE_FORMAT_PATTERN))) .setVersion(RuntimeConstants.VERSION)
print("Web Port: " + masterInfo.getWebPort()); print("Rpc Port: " + masterInfo.getRpcPort()); print("Started: " + CommonUtils.convertMsToDate(masterInfo.getStartTimeMs(), mDateFormatPattern)); print("Uptime: " + CommonUtils.convertMsToClockTime(masterInfo.getUpTimeMs()));
/** * @return the creation time (in milliseconds) */ public String getCreationTime() { if (mCreationTimeMs == LocalFileInfo.EMPTY_CREATION_TIME) { return ""; } return CommonUtils.convertMsToDate(mCreationTimeMs); }
/** * @return the modification time (in milliseconds) */ public String getModificationTime() { return CommonUtils.convertMsToDate(mLastModificationTimeMs); }
.convertMsToClockTime(System.currentTimeMillis() - mMetaMaster.getStartTimeMs())); request.setAttribute("startTime", CommonUtils.convertMsToDate(mMetaMaster.getStartTimeMs()));