Java Time Format formatTime(String timeStr)

Here you can find the source of formatTime(String timeStr)

Description

format Time

License

Open Source License

Declaration

private static String formatTime(String timeStr) 

Method Source Code

//package com.java2s;

public class Main {
    private static String formatTime(String timeStr) {
        if (timeStr.length() == 1) {
            timeStr = "0" + timeStr;
        }//from   ww w. j a v a2  s  . co m
        return timeStr;
    }
}

Related

  1. FormatTime(String strTime, char TimeSepartor)
  2. formatTime(String time)
  3. formatTime(String time)
  4. formatTime(String time)
  5. formatTime(String time)
  6. formatTime14To12String(String time)
  7. formatTime2(long secs)
  8. formatTime2(long timeInSeconds)
  9. formatTime3(long secs)