Package com.reve.utils.time
Class TimeFormatter
java.lang.Object
com.reve.utils.time.TimeFormatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFormattedTime(long time, String format) Get the time of givenCalendarinstance in the format specified in the parameter.getFormattedTime(Calendar time, String format) Get the time of givenCalendarinstance in the format specified in the parameter.
-
Constructor Details
-
TimeFormatter
public TimeFormatter()
-
-
Method Details
-
getFormattedTime
Get the time of givenCalendarinstance in the format specified in the parameter. See Date formats for various types of date formats possible. Some of them may not be implemented in this method yet.- Parameters:
time- The time specified in this instance will be converted to a printable string.format- The requested format of the printable date time.- Returns:
- the printable string in the given format, of given
Calendartime.
-
getFormattedTime
Get the time of givenCalendarinstance in the format specified in the parameter. See Date formats for various types of date formats possible. Some of them may not be implemented in this method yet.- Parameters:
time- The time specified in this instance will be converted to a printable string.format- The requested format of the printable date time.- Returns:
- the printable string in the given format, of given
Calendartime.
-