public class TimeFormatter extends Object
| Constructor and Description |
|---|
TimeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormattedTime(Calendar time,
String format)
Get the time of given
Calendar instance in the format specified in the parameter. |
String |
getFormattedTime(long time,
String format)
Get the time of given
Calendar instance in the format specified in the parameter. |
public String getFormattedTime(long time, String format)
Calendar instance 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.time - The time specified in this instance will be converted to a printable string.format - The requested format of the printable date time.Calendar time.public String getFormattedTime(Calendar time, String format)
Calendar instance 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.time - The time specified in this instance will be converted to a printable string.format - The requested format of the printable date time.Calendar time.Copyright © 2024. All rights reserved.