Android Calendar Get extractTimeFromCalendarTime(Calendar time)

Here you can find the source of extractTimeFromCalendarTime(Calendar time)

Description

extract Time From Calendar Time

Declaration

public static String extractTimeFromCalendarTime(Calendar time) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String extractTimeFromCalendarTime(Calendar time) {
        SimpleDateFormat timeFormatter = new SimpleDateFormat("hh:mm a");
        return timeFormatter.format(time.getTime());
    }//w w  w. ja  va 2s  .c om
}

Related

  1. getWeek(final Calendar calendar)
  2. getWeek(final Long date)
  3. getYear()
  4. getYear(Calendar c)
  5. extractDateFromCalendarTime(Calendar time)
  6. getCurrentCalendar()
  7. getCurrentDateByOffset(String format, int calendarField, int offset)
  8. getCalenderFromDateString(String dateString)