Java Time Readable Format toTimeFormat(String _srcTime)

Here you can find the source of toTimeFormat(String _srcTime)

Description

to Time Format

License

Open Source License

Declaration

public static String toTimeFormat(String _srcTime) 

Method Source Code

//package com.java2s;

public class Main {
    public static String toTimeFormat(String _srcTime) {

        if (_srcTime == null || _srcTime.length() != 4)
            return _srcTime;
        return _srcTime.substring(0, 2) + ":" + _srcTime.substring(2, 4);

    }// w  w  w  . j a  v  a 2  s  .  co m
}

Related

  1. toTime(long ms)
  2. toTime(long nanos)
  3. toTime(long time)
  4. toTime2(int value, int nanos, int meta)
  5. toTimeExpression(long ms, int frames)
  6. toTimeHumanReadable(final long time)
  7. toTimeSpanDescription(long time)
  8. toTimestamp(long time)
  9. toTimeStampString(String timeStr)