public class L10nTimespanFormat
extends java.text.Format
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
charForToken |
static long |
dSecs |
static long |
hSecs |
static long |
mSecs |
static long |
MSecs |
static java.lang.String |
PATTERN_HHmm |
static java.lang.String |
PATTERN_HHmmss |
static java.lang.String |
PATTERN_HHmmssSSS |
static java.lang.String |
patternStrDefault |
static long[] |
secsForToken |
static long |
sSecs |
static long |
wSecs |
static long |
ySecs |
Constructor and Description |
---|
L10nTimespanFormat()
Constructor.
|
L10nTimespanFormat(java.lang.String _patternStr) |
L10nTimespanFormat(java.lang.String _patternStr,
java.util.Locale _locale) |
Modifier and Type | Method and Description |
---|---|
static javax.xml.datatype.Duration |
durationFromTimespan(long _ms)
Creates a Duration from a given number of milliseconds using the default
factors of L10nTimespanFormat for the length of years, months, etc. for
the calculation.
|
static int[] |
factorsFromTimespan(long _ms) |
java.lang.String |
format(long _l)
Convenience method to directly format a long.
|
java.lang.StringBuffer |
format(java.lang.Object _obj,
java.lang.StringBuffer _sb,
java.text.FieldPosition _pos)
Format _obj (Number) to String.
|
static javax.xml.datatype.DatatypeFactory |
getDatatypeFactory() |
java.util.Locale |
getLocale() |
java.lang.String |
getPattern() |
java.lang.Long |
parse(java.lang.String _str)
Convenience method to directly parse a String.
|
java.lang.Object |
parseObject(java.lang.String _str,
java.text.ParsePosition _pos)
(Try to) parse _str into Object (Long).
|
public static final java.lang.String PATTERN_HHmmssSSS
public static final java.lang.String PATTERN_HHmmss
public static final java.lang.String PATTERN_HHmm
public static final java.lang.String patternStrDefault
public static final long sSecs
public static final long mSecs
public static final long hSecs
public static final long dSecs
public static final long wSecs
public static final long MSecs
public static final long ySecs
public static final long[] secsForToken
public static final java.lang.String[] charForToken
public L10nTimespanFormat()
public L10nTimespanFormat(java.lang.String _patternStr)
public L10nTimespanFormat(java.lang.String _patternStr, java.util.Locale _locale)
public java.lang.String getPattern()
public java.util.Locale getLocale()
public static javax.xml.datatype.DatatypeFactory getDatatypeFactory()
public java.lang.String format(long _l)
public java.lang.StringBuffer format(java.lang.Object _obj, java.lang.StringBuffer _sb, java.text.FieldPosition _pos)
format
in class java.text.Format
public static javax.xml.datatype.Duration durationFromTimespan(long _ms)
public static int[] factorsFromTimespan(long _ms)
public java.lang.Long parse(java.lang.String _str) throws java.text.ParseException
java.text.ParseException
public java.lang.Object parseObject(java.lang.String _str, java.text.ParsePosition _pos)
parseObject
in class java.text.Format
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.