se.unlogic.standardutils.time
Class TimeUtils

java.lang.Object
  extended by se.unlogic.standardutils.time.TimeUtils

public class TimeUtils
extends Object


Field Summary
static SimpleDateFormat HOUR_FORMATTER
           
static SimpleDateFormat MINUTE_FORMATTER
           
static SimpleDateFormat SECOND_FORMATTER
           
static SimpleDateFormat TIME_FORMATTER
           
 
Constructor Summary
TimeUtils()
           
 
Method Summary
static Timestamp getCurrentTimestamp()
           
static int getHour(long time)
           
static int getMinutes(long time)
           
static int getSeconds(long time)
           
static String hourAndMinutesToString(int hours, int minutes)
           
static String millisecondsToString(long time)
           
static String secondsToString(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOUR_FORMATTER

public static SimpleDateFormat HOUR_FORMATTER

MINUTE_FORMATTER

public static SimpleDateFormat MINUTE_FORMATTER

SECOND_FORMATTER

public static SimpleDateFormat SECOND_FORMATTER

TIME_FORMATTER

public static SimpleDateFormat TIME_FORMATTER
Constructor Detail

TimeUtils

public TimeUtils()
Method Detail

secondsToString

public static String secondsToString(long time)

millisecondsToString

public static String millisecondsToString(long time)

getMinutes

public static int getMinutes(long time)

getSeconds

public static int getSeconds(long time)

getHour

public static int getHour(long time)

hourAndMinutesToString

public static String hourAndMinutesToString(int hours,
                                            int minutes)

getCurrentTimestamp

public static Timestamp getCurrentTimestamp()


Copyright © 2011. All Rights Reserved.