Java Long Number to Time getTimeStr(long t)

Here you can find the source of getTimeStr(long t)

Description

get Time Str

License

Open Source License

Declaration

public static String getTimeStr(long t) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    public static String getTimeStr(long t) {
        SimpleDateFormat dt = new SimpleDateFormat("z_yyyy.MM.dd_hh.mm.ss");
        dt.setTimeZone(TimeZone.getTimeZone("PST"));
        String dateStr = dt.format(new Date(t));
        return dateStr;
    }/*from  w w w .  j  a v a  2  s  . co m*/
}

Related

  1. getTimeFromLong(long diff)
  2. getTimeLong()
  3. getTimeOf12(long time)
  4. getTimeOld(long time)
  5. getTimestampDiff(Long old)
  6. getTimeStr(long timeLong)
  7. getTimeString(long nanoTime)
  8. getTimeString(long time)
  9. getTimeTagged(long time, boolean round)