public class CustomServiceUtils extends Object
Constructor and Description |
---|
CustomServiceUtils() |
Modifier and Type | Method and Description |
---|---|
static long[] |
categoryStrToLong(String[] categories)
Parse a list of Long values from their String representation
|
static String |
formatZoneDate(long date)
Format a numeric Date representation to a readable string, according to the default Date-format specified in Constants
Note: uses
#getTimeZone()) getTimeZone as default timezone |
static String |
formatZoneDateTime(long date)
Format a numeric date+time representation to a readable string, according to the default Date+Time-format specified in Constants
Note: uses
#getTimeZone()) getTimeZone as default timezone |
static String |
formatZoneTime(long date)
Format a numeric time representation to a readable string, according to the default Time-format specified in Constants
Note: uses
#getTimeZone()) getTimeZone as default timezone |
static org.joda.time.DateTimeZone |
getTimeZone()
Gets the time zone, as configured in Constants
|
static long |
parseZoneDateTime(String date,
String time)
Parses the given date and time from string-representation to its numeric value
Note: uses
#getTimeZone()) getTimeZone as default timezone |
static Long[] |
strToLongArr(String str)
Parse a list of Long values from an imploded String representation (using , as delimiter)
|
static long |
time()
Get the current time as number
|
public static long[] categoryStrToLong(String[] categories)
categories
- The Long values as array with string representationspublic static String formatZoneDate(long date)
#getTimeZone()) getTimeZone
as default timezonedate
- the date in numeric formpublic static String formatZoneDateTime(long date)
#getTimeZone()) getTimeZone
as default timezonedate
- the date+time in numeric formpublic static String formatZoneTime(long date)
#getTimeZone()) getTimeZone
as default timezonedate
- the time in numeric formpublic static org.joda.time.DateTimeZone getTimeZone()
public static long parseZoneDateTime(String date, String time)
#getTimeZone()) getTimeZone
as default timezonedate
- the datetime
- the timepublic static Long[] strToLongArr(String str)
str
- The string representing a list of long, separated by commapublic static long time()
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.