import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.logging.Level;
import java.util.logging.Logger;


public class Alias
{
	private String alias, firstUsed, lastUsed;
	private Logger logger = Logger.getLogger(Alias.class.getName());

	public Alias(String str)
	{
		logger.log(Level.FINE, "alias string: " + str);
		String[] details = str.split("\t");

		alias = details[0];
		firstUsed = getDate(details[1]);
		lastUsed = getDate(details[2]);
	}

	private String getDate(String unixTime)
	{
		long unixSeconds = 0;

		try
		{
			unixSeconds = Long.parseLong(unixTime);
		} catch (NumberFormatException e)
		{
			logger.log(Level.WARNING, e.getMessage());
			return "DATE PARSE ERROR";
		}

		Date date = new Date(unixSeconds * 1000L); // *1000 is to convert seconds to milliseconds
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); // the format of your date
		sdf.setTimeZone(TimeZone.getTimeZone("America/New_York"));

		return sdf.format(date);
	}

	public String getAlias()
	{
		return alias;
	}

	public String getFirstUsed()
	{
		return firstUsed;
	}

	public String getLastUsed()
	{
		return lastUsed;
	}

	public void setAlias(String newAlias)
	{
		alias = newAlias;
	}

	public void setFirstUsed(String newDate)
	{
		firstUsed = getDate(newDate);
	}

	public void setLastUsed(String newDate)
	{
		lastUsed = getDate(newDate);
	}
}
@@ -423,32 +423,41 @@
 ;%0A%09%09firstUsed = 
+Function.
 getDate(details%5B
@@ -466,32 +466,41 @@
 );%0A%09%09lastUsed = 
+Function.
 getDate(details%5B
@@ -505,535 +505,8 @@
 s%5B2%5D
-);%0A%09%7D%0A%0A%09private String getDate(String unixTime)%0A%09%7B%0A%09%09long unixSeconds = 0;%0A%0A%09%09try%0A%09%09%7B%0A%09%09%09unixSeconds = Long.parseLong(unixTime);%0A%09%09%7D catch (NumberFormatException e)%0A%09%09%7B%0A%09%09%09logger.log(Level.WARNING, e.getMessage());%0A%09%09%09return %22DATE PARSE ERROR%22;%0A%09%09%7D%0A%0A%09%09Date date = new Date(unixSeconds * 1000L); // *1000 is to convert seconds to milliseconds%0A%09%09SimpleDateFormat sdf = new SimpleDateFormat(%22yyyy-MM-dd HH:mm:ss z%22); // the format of your date%0A%09%09sdf.setTimeZone(TimeZone.getTimeZone(%22America/New_York%22));%0A%0A%09%09return sdf.format(date
 );%0A%09
@@ -786,32 +786,41 @@
 %7B%0A%09%09firstUsed = 
+Function.
 getDate(newDate)
@@ -869,16 +869,16 @@
 ate)%0A%09%7B%0A
-
 %09%09lastUs
@@ -882,16 +882,25 @@
 tUsed = 
+Function.
 getDate(

update Alias class to use getDate in Function class