Java Second Format formatTimeWithOutSeconds(java.util.Date d)

Here you can find the source of formatTimeWithOutSeconds(java.util.Date d)

Description

format Time With Out Seconds

License

Open Source License

Declaration

public static final String formatTimeWithOutSeconds(java.util.Date d) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    public static final String formatTimeWithOutSeconds(java.util.Date d) {
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
        return sdf.format(d);
    }//from   ww  w  .  j ava  2s. co m
}

Related

  1. formatTime(double seconds)
  2. formatTime(float seconds)
  3. formatTimeInSeconds(int v)
  4. formatTimeSecondsSinceEpoch(final long time, StringBuilder sbuffer)
  5. formatTimeSpanSeconds(long span)
  6. getDHMS(long totalSecond)
  7. getElapsedSeconds(long startTime)
  8. getFormatMSecond(long long_)
  9. getFormattedDuration(int simTimeSeconds)