Java Date to Time getTimePeriod(Date date)

Here you can find the source of getTimePeriod(Date date)

Description

get Time Period

License

Apache License

Declaration

public static String getTimePeriod(Date date) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getTimePeriod(Date date) {
        SimpleDateFormat _sdf = new SimpleDateFormat("aa");

        String _value = _sdf.format(date);

        return _value;
    }//from  w  ww  . ja va  2  s. c  o m
}

Related

  1. getTimeOfDate(Date date)
  2. getTimeOnly(Date date)
  3. getTimeOnly(Date date)
  4. getTimeOnly(final Date oDate)
  5. getTimePart(Date dateObject)
  6. getTimerDate(String time)
  7. getTimeRoll(Date current, int field, int numberOfRoll)
  8. getTimeStamp(long timeMilis, boolean time, boolean date)
  9. getTimeStampInMin(Date date)