List of utility methods to do Time Format
String | convertDateTime(long date, String format) convert Date Time try { if (format == null) { format = DEFAULT_FORMAT_DATE; SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format); return simpleDateFormat.format(new Date(date)); } catch (Exception e) { e.printStackTrace(); ... |
Date | getDateFromFormattedTimeStamp( String formattedTimeStamp) get Date From Formatted Time Stamp SimpleDateFormat date = new SimpleDateFormat( MARTUS_SIGNATURE_FILE_DATE_FORMAT); return date.parse(formattedTimeStamp); |
String | getFormattedTimeStamp(long millisSince1970) get Formatted Time Stamp Timestamp stamp = new Timestamp(millisSince1970); SimpleDateFormat formatDate = new SimpleDateFormat( MARTUS_SIGNATURE_FILE_DATE_FORMAT); String dateStamp = formatDate.format(stamp); return dateStamp; |
String | getRFC3339FormattedTime() get RFC Formatted Time Calendar calendar = getCurrentCalendar(); calendar.add(Calendar.HOUR_OF_DAY, -9); SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ssz"); String result = format.format(calendar.getTime()); String standardName = ""; if (result.contains("JST")) { standardName = "JST"; ... |
String | get_current_date_time_format1_str() gecurrendattimformastr Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(DATE_TIME_FORMAT1); return sdf.format(cal.getTime()); |
String | timeFormatToString(int paramInt) time Format To String StringBuffer localStringBuffer = new StringBuffer(); int i = paramInt / 1000; int j = i / 3600; int l; int i1; if (j >= 10) { localStringBuffer.append(j); } else { ... |
String | timeLongToHhmm(long timeMillis, DateFormat df) time Long To Hhmm Date d = new Date(timeMillis); return df.format(d); |
String | toModifiedTimeString(Date modified) to Modified Time String long time = modified.getTime(); double timed = time / 1000.0; String retval = String.format(Locale.ENGLISH, "%.2f", timed); return retval; |
long | convertDateTime(String date) convert Date Time return convertDateTime(date, null);
|
String | convertDateTime(long date) convert Date Time return convertDateTime(date, null);
|