Enum ETimeUtilities
- java.lang.Object
-
- java.lang.Enum<ETimeUtilities>
-
- org.hortonmachine.gears.io.geopaparazzi.geopap4.ETimeUtilities
-
- All Implemented Interfaces:
Serializable,Comparable<ETimeUtilities>
public enum ETimeUtilities extends Enum<ETimeUtilities>
Singleton utility for time management.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEsingleton instance.
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringutcToLocalTime(String dateTime)Converts a utc time string to local time.static ETimeUtilitiesvalueOf(String name)Returns the enum constant of this type with the specified name.static ETimeUtilities[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ETimeUtilities INSTANCE
singleton instance.
-
-
Field Detail
-
dateLocale
public final Locale dateLocale
-
TIMESTAMPFORMATTER_LOCAL
public final SimpleDateFormat TIMESTAMPFORMATTER_LOCAL
-
TIMESTAMPFORMATTER_UTC
public final SimpleDateFormat TIMESTAMPFORMATTER_UTC
-
DATEONLY_FORMATTER
public final SimpleDateFormat DATEONLY_FORMATTER
-
TIMEONLY_FORMATTER
public final SimpleDateFormat TIMEONLY_FORMATTER
-
iso8601Format
public final SimpleDateFormat iso8601Format
-
TIME_FORMATTER_UTC
public final SimpleDateFormat TIME_FORMATTER_UTC
-
TIME_FORMATTER_LOCAL
public final SimpleDateFormat TIME_FORMATTER_LOCAL
-
TIME_FORMATTER_SQLITE_UTC
public final SimpleDateFormat TIME_FORMATTER_SQLITE_UTC
-
TIME_FORMATTER_SQLITE_LOCAL
public final SimpleDateFormat TIME_FORMATTER_SQLITE_LOCAL
-
TIME_FORMATTER_GPX_UTC
public final SimpleDateFormat TIME_FORMATTER_GPX_UTC
-
EXIFFORMATTER
public final SimpleDateFormat EXIFFORMATTER
-
-
Method Detail
-
values
public static ETimeUtilities[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ETimeUtilities c : ETimeUtilities.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETimeUtilities valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-