public class Util
extends java.lang.Object
Constructor | Description |
---|---|
Util() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
calendarToString(java.util.Calendar calendar) |
returns calendar as a string in the format "YYYY-MM-DD HH:MM:SS"
|
static java.util.Calendar |
createGMTzoneCalendar(long unixTimestamp) |
returns a GMT time zone calendar with time equal to unixTimestamp
|
static java.lang.String |
getApiKey() |
gets the api key parameter (if any) to be used - see cryptocompare.com/coins/guides/how-to-use-our-api/
for more info.
|
static void |
setApiKey(java.lang.String api_key) |
sets the api key parameter to be used - see cryptocompare.com/coins/guides/how-to-use-our-api/
for more info.
|
static java.lang.String |
timestampToGMTCalendarString(long unixTimestamp) |
returns a GMT time zone calendar as a string with time equal to unixTimestamp
|
public static java.lang.String getApiKey()
public static void setApiKey(java.lang.String api_key)
api_key
- api key parameter to usepublic static java.lang.String calendarToString(java.util.Calendar calendar)
calendar
- calendar to convertpublic static java.lang.String timestampToGMTCalendarString(long unixTimestamp)
unixTimestamp
- timestamp to convertpublic static java.util.Calendar createGMTzoneCalendar(long unixTimestamp)
unixTimestamp
- timestamp to convert