public class StringFormatHelperSP extends Object
StringFormatHelper in the future| Constructor and Description |
|---|
StringFormatHelperSP() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFormattedTimeOfDay(long timeOfDay)
Deprecated.
|
static String |
getFormattedTimeOfDay(long timeOfDay,
boolean printSeconds)
Get string representation for a time value relative to the beginning of a day
|
static String |
getFormattedValue(long deltaT,
int switchLimit)
Convert interval duration to a flexible string giving seconds, minutes, hours, days,
months or years
as the most readable choice
|
@Deprecated public static String getFormattedTimeOfDay(long timeOfDay)
public static String getFormattedTimeOfDay(long timeOfDay, boolean printSeconds)
timeOfDay - time compared to beginning of a day in millisecondsprintSeconds - if true also seconds of minute will be included into
the resultpublic static String getFormattedValue(long deltaT, int switchLimit)
deltaT - interval duration in millisecondsswitchLimit - maximum number of seconds, minutes, hours, days etc. shown before
switching to the next higher unit type. Default value is 100, which limits the
number of digits to 2 (except for very large numbers). For edit fields a higher value
(e.g. 360) is recommended.Copyright © 2019. All rights reserved.