Java Minute Parse parseMinutes(long time)

Here you can find the source of parseMinutes(long time)

Description

parse Minutes

License

Apache License

Declaration

public static String parseMinutes(long time) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    public static String parseMinutes(long time) {
        SimpleDateFormat format = new SimpleDateFormat("mm:ss", Locale.GERMANY);
        Date date = new Date(time);
        return format.format(date);
    }//from w  w  w  .  j a  v  a2 s.c o m
}

Related

  1. parseHHMMStringToMinutes(String time)
  2. parseHourAndMinute(String value)
  3. parseIntForMinute(Integer i)
  4. parseMinutes(String minutes, int defaultValue)
  5. parseMinutes(String timeInMinutes)