Class Tools

java.lang.Object
org.scictrl.csshell.Tools

public final class Tools extends Object
This class holds DataBush constants.
Author:
igor@scictrl.com
  • Field Details

    • EOL_WIN

      public static final String EOL_WIN
      Constant EOL_WIN="\r\n"
      See Also:
    • ISO_DATE_TIME_MILLI_PATTERN

      public static final String ISO_DATE_TIME_MILLI_PATTERN
      Constant ISO_DATE_TIME_MILLI_PATTERN="yyyy-MM-dd'T'HH:mm:ss.SSS"
      See Also:
    • ISO_DATE_TIME_PATTERN

      public static final String ISO_DATE_TIME_PATTERN
      Constant ISO_DATE_TIME_PATTERN="yyyy-MM-dd'T'HH:mm:ss"
      See Also:
    • ISO_DATE_NO_T_TIME_PATTERN

      public static final String ISO_DATE_NO_T_TIME_PATTERN
      Constant ISO_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_MILLI
      Constant FORMAT_ISO_DATE_TIME_MILLI
    • FORMAT_ISO_DATE_TIME

      public static final org.apache.commons.lang3.time.FastDateFormat FORMAT_ISO_DATE_TIME
      Constant FORMAT_ISO_DATE_TIME
    • FORMAT_ISO_DATE_NO_T_TIME

      public static final org.apache.commons.lang3.time.FastDateFormat FORMAT_ISO_DATE_NO_T_TIME
      Constant FORMAT_ISO_DATE_NO_T_TIME
    • PARSE_ISO_DATE_TIME_MILLI

      public static final SimpleDateFormat PARSE_ISO_DATE_TIME_MILLI
      Constant PARSE_ISO_DATE_TIME_MILLI
    • PARSE_ISO_DATE_NO_T_TIME

      public static final SimpleDateFormat PARSE_ISO_DATE_NO_T_TIME
      Constant PARSE_ISO_DATE_NO_T_TIME
    • FORMAT_F4

      public static final DecimalFormat FORMAT_F4
      Constant FORMAT_F4
    • FORMAT_F3

      public static final DecimalFormat FORMAT_F3
      Constant FORMAT_F3
  • Method Details

    • nowIsoDateTimeMilli

      public static final String nowIsoDateTimeMilli()

      nowIsoDateTimeMilli.

      Returns:
      a String object
    • nowIsoDateNoTTime

      public static final String nowIsoDateNoTTime()

      nowIsoDateNoTTime.

      Returns:
      a String object
    • format4E

      public static String format4E(double d)

      format4E.

      Parameters:
      d - a double
      Returns:
      a String object
    • format3E

      public static String format3E(double d)

      format3E.

      Parameters:
      d - a double
      Returns:
      a String object
    • format2E

      public static String format2E(double d)

      format2E.

      Parameters:
      d - a double
      Returns:
      a String object
    • format1E

      public static String format1E(double d)

      format1E.

      Parameters:
      d - a double
      Returns:
      a String object
    • format3D

      public static String format3D(double d)

      format3D.

      Parameters:
      d - a double
      Returns:
      a String object
    • format2D

      public static String format2D(double d)

      format2D.

      Parameters:
      d - a double
      Returns:
      a String object
    • format1D

      public static String format1D(double d)

      format1D.

      Parameters:
      d - a double
      Returns:
      a String object
    • format4D

      public static String format4D(double d)

      format4D.

      Parameters:
      d - a double
      Returns:
      a String object
    • formatdMHmsS

      public static String formatdMHmsS(Date d)

      formatdMHmsS.

      Parameters:
      d - a Date object
      Returns:
      a String object
    • formatdMHmsS

      public static String formatdMHmsS(long d)

      formatdMHmsS.

      Parameters:
      d - a long
      Returns:
      a String object
    • formatdMHmsS

      public static String formatdMHmsS()

      formatdMHmsS.

      Returns:
      a String object