Java Long Number to Time getAmPm(long time)

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

Description

get Am Pm

License

Apache License

Declaration

private static String getAmPm(long time) 

Method Source Code


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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    private static String getAmPm(long time) {
        SimpleDateFormat sf = new SimpleDateFormat("aa");
        return sf.format(new Date(time));
        // return getAmPmStr(time) == 0 ? mContext.getString(AM) : mContext.getString(PM);
    }/*from  w  w w  .j a v a 2 s .  c  o m*/
}

Related

  1. formatTime(long date)
  2. formatTime(long ms)
  3. formatTimestampLong(long timestamp, String datepattern, TimeZone tz)
  4. formatToUTC(long datetime)
  5. formatXSDateTime(long lastModified)
  6. getCollectTimeInLong(Date date)
  7. getDelay(long delay, long interval)
  8. getDT(long mills)
  9. getDuration(long time)