public class DateTimeStyleFormat extends Object implements XMLConvertible
| Modifier and Type | Field and Description |
|---|---|
static String |
COLON
A colon
|
static String |
DASH
A dash
|
static String |
DAY
16.27.11 number:day
the day
|
static String |
DAY_OF_WEEK
16.27.15 number:day-of-week
Day of week
|
static String |
DOT
A dot
|
static String |
DOT_SPACE
A dot and a space
|
static String |
HOURS
16.27.19 number:hours
Hours
|
static String |
LONG_DAY
16.27.11 number:day
A day (long)
|
static String |
LONG_HOURS
16.27.19 number:hours
Hours (long)
|
static String |
LONG_MINUTES
16.27.20 number:minutes
Minutes (long)
|
static String |
LONG_MONTH
16.27.12 number:month
A month (long)
|
static String |
LONG_SECONDS
16.27.21 number:seconds
Seconds (long)
|
static String |
LONG_TEXTUAL_DAY
16.27.11 number:day
A day (long)
|
static String |
LONG_TEXTUAL_MONTH
16.27.12 number:month
A month name (long)
|
static String |
LONG_YEAR
16.27.13 number:year
A year YYYY
|
static String |
MINUTES
16.27.20 number:minutes
Minutes
|
static String |
MONTH
16.27.12 number:month
A month
|
static String |
SECONDS
16.27.21 number:seconds
Seconds
|
static String |
SLASH
A slash
|
static String |
SPACE
A space
|
static String |
TEXTUAL_DAY
16.27.11 number:day
the day, textual version
|
static String |
TEXTUAL_MONTH
16.27.12 number:month
A month name
|
static String |
WEEK
16.27.16 number:week-of-year
A week number in the year
|
static String |
YEAR
16.27.13 number:year
A year YY
|
| Constructor and Description |
|---|
DateTimeStyleFormat(String... strings)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static String |
longSeconds(int n)
16.27.21 number:seconds
Seconds (long)
|
static String |
text(String s)
A free text
|
public static final String DAY
public static final String LONG_DAY
public static final String TEXTUAL_DAY
public static final String LONG_TEXTUAL_DAY
public static final String MONTH
public static final String LONG_MONTH
public static final String TEXTUAL_MONTH
public static final String LONG_TEXTUAL_MONTH
public static final String YEAR
public static final String LONG_YEAR
public static final String DASH
public static final String COLON
public static final String DOT
public static final String DOT_SPACE
public static final String SLASH
public static final String SPACE
public static final String DAY_OF_WEEK
public static final String WEEK
public static final String HOURS
public static final String LONG_HOURS
public static final String MINUTES
public static final String LONG_MINUTES
public static final String SECONDS
public static final String LONG_SECONDS
public DateTimeStyleFormat(String... strings)
strings - the string that compose the formatpublic static String text(String s)
s - the textpublic static String longSeconds(int n)
n - number of digitspublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedCopyright © 2016–2021. All rights reserved.