com.xeiam.xchange.loyalbit.LoyalbitUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-loyalbit Show documentation
Show all versions of xchange-loyalbit Show documentation
XChange implementation for the Loyalbit Exchange
The newest version!
package com.xeiam.xchange.loyalbit;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.xeiam.xchange.exceptions.ExchangeException;
/**
* A central place for shared Loyalbit properties
*/
public final class LoyalbitUtils {
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
/**
* private Constructor
*/
private LoyalbitUtils() {
}
/**
* Format a date String for Loyalbit
*
* @param dateString
* @return
*/
public static Date parseDate(String dateString) {
try {
return DATE_FORMAT.parse(dateString);
} catch (ParseException e) {
throw new ExchangeException("Illegal date/time format", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy