Here you can find the source of formatUnsignedVersion(String ver)
private static String formatUnsignedVersion(String ver)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from w w w . j av a2 s . co m*/ * Convert long date stamp to * '07-Jul 21:09 UTC' with month name in the system locale * @return null if ver = null * @since 0.9.4 moved from NewsFetcher */ private static String formatUnsignedVersion(String ver) { if (ver != null) { try { long modtime = Long.parseLong(ver); return (new SimpleDateFormat("dd-MMM HH:mm")).format(new Date(modtime)) + " UTC"; } catch (NumberFormatException nfe) { } } return null; } }