Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { @Deprecated public static String switchTime(long time, String format) { Date date = new Date(time); SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(date); } }