Here you can find the source of getTimeAndDateStamp(String line)
public static String getTimeAndDateStamp(String line)
//package com.java2s; //License from project: Apache License import java.sql.Date; import java.text.SimpleDateFormat; import java.util.TimeZone; public class Main { public static String getTimeAndDateStamp(String line) { Date unixTimeStamp = new Date(Long.parseLong(line.split(" ")[0])); SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MM-yy, hh:mm a z"); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); return sdf.format(unixTimeStamp); }/*from w w w .jav a2 s.c o m*/ }