Java Long Number to Time convertLongTimeToText(Long time)

Here you can find the source of convertLongTimeToText(Long time)

Description

Convert custom field value to text form

License

Open Source License

Parameter

Parameter Description
time the time which will be converted to string form

Return

string representation of time

Declaration

public static String convertLongTimeToText(Long time) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*  w w w. jav a2 s  .  com*/
     * Convert custom field value to text form
     * @param time the time which will be converted to string form
     * @return string representation of time
     */
    public static String convertLongTimeToText(Long time) {
        if (time != null) {
            time /= 60; //to minutes
            return time.toString();
        }
        return null;
    }
}

Related

  1. addMinTime(long time, String addMin)
  2. calcTime(final long totalTime)
  3. convertLong2String(Long time, String format)
  4. convertLongDate(long lDate, String format)
  5. convertLongTimeStampToString(long localTimeStamp)
  6. convertLongToTimestampString(String dateFormat, Long millSec)
  7. ConvertLongToTimeString(long lastModified)
  8. convertMillisToHHMMSS(long millis)
  9. convertMillsToDateString(long currentTimeMillis)