Package org.scictrl.csshell
Class Tools
java.lang.Object
org.scictrl.csshell.Tools
This class holds DataBush constants.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantEOL_WIN="\r\n"
static final DecimalFormat
ConstantFORMAT_F3
static final DecimalFormat
ConstantFORMAT_F4
static final org.apache.commons.lang3.time.FastDateFormat
ConstantFORMAT_ISO_DATE_NO_T_TIME
static final org.apache.commons.lang3.time.FastDateFormat
ConstantFORMAT_ISO_DATE_TIME
static final org.apache.commons.lang3.time.FastDateFormat
ConstantFORMAT_ISO_DATE_TIME_MILLI
static final String
ConstantISO_DATE_NO_T_TIME_PATTERN="yyyy-MM-dd' 'HH:mm:ss"
static final String
ConstantISO_DATE_TIME_MILLI_PATTERN="yyyy-MM-dd'T'HH:mm:ss.SSS"
static final String
ConstantISO_DATE_TIME_PATTERN="yyyy-MM-dd'T'HH:mm:ss"
static final SimpleDateFormat
ConstantPARSE_ISO_DATE_NO_T_TIME
static final SimpleDateFormat
ConstantPARSE_ISO_DATE_TIME_MILLI
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
format1D
(double d) format1D.static String
format1E
(double d) format1E.static String
format2D
(double d) format2D.static String
format2E
(double d) format2E.static String
format3D
(double d) format3D.static String
format3E
(double d) format3E.static String
format4D
(double d) format4D.static String
format4E
(double d) format4E.static String
formatdMHmsS.static String
formatdMHmsS
(long d) formatdMHmsS.static String
formatdMHmsS
(Date d) formatdMHmsS.static final String
nowIsoDateNoTTime.static final String
nowIsoDateTimeMilli.
-
Field Details
-
EOL_WIN
ConstantEOL_WIN="\r\n"
- See Also:
-
ISO_DATE_TIME_MILLI_PATTERN
ConstantISO_DATE_TIME_MILLI_PATTERN="yyyy-MM-dd'T'HH:mm:ss.SSS"
- See Also:
-
ISO_DATE_TIME_PATTERN
ConstantISO_DATE_TIME_PATTERN="yyyy-MM-dd'T'HH:mm:ss"
- See Also:
-
ISO_DATE_NO_T_TIME_PATTERN
ConstantISO_DATE_NO_T_TIME_PATTERN="yyyy-MM-dd' 'HH:mm:ss"
- See Also:
-
FORMAT_ISO_DATE_TIME_MILLI
public static final org.apache.commons.lang3.time.FastDateFormat FORMAT_ISO_DATE_TIME_MILLIConstantFORMAT_ISO_DATE_TIME_MILLI
-
FORMAT_ISO_DATE_TIME
public static final org.apache.commons.lang3.time.FastDateFormat FORMAT_ISO_DATE_TIMEConstantFORMAT_ISO_DATE_TIME
-
FORMAT_ISO_DATE_NO_T_TIME
public static final org.apache.commons.lang3.time.FastDateFormat FORMAT_ISO_DATE_NO_T_TIMEConstantFORMAT_ISO_DATE_NO_T_TIME
-
PARSE_ISO_DATE_TIME_MILLI
ConstantPARSE_ISO_DATE_TIME_MILLI
-
PARSE_ISO_DATE_NO_T_TIME
ConstantPARSE_ISO_DATE_NO_T_TIME
-
FORMAT_F4
ConstantFORMAT_F4
-
FORMAT_F3
ConstantFORMAT_F3
-
-
Method Details
-
nowIsoDateTimeMilli
nowIsoDateTimeMilli.
- Returns:
- a
String
object
-
nowIsoDateNoTTime
nowIsoDateNoTTime.
- Returns:
- a
String
object
-
format4E
format4E.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format3E
format3E.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format2E
format2E.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format1E
format1E.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format3D
format3D.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format2D
format2D.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format1D
format1D.
- Parameters:
d
- a double- Returns:
- a
String
object
-
format4D
format4D.
- Parameters:
d
- a double- Returns:
- a
String
object
-
formatdMHmsS
formatdMHmsS.
-
formatdMHmsS
formatdMHmsS.
- Parameters:
d
- a long- Returns:
- a
String
object
-
formatdMHmsS
formatdMHmsS.
- Returns:
- a
String
object
-