org.knowm.xchange.coinfloor.CoinfloorUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-coinfloor Show documentation
Show all versions of xchange-coinfloor Show documentation
XChange implementation for the Coinfloor Exchange
The newest version!
package org.knowm.xchange.coinfloor;
import java.text.ParseException;
import java.util.Date;
import java.util.TimeZone;
import org.apache.commons.lang3.time.FastDateFormat;
import org.knowm.xchange.exceptions.ExchangeException;
public final class CoinfloorUtils {
private static final FastDateFormat DATE_FORMAT =
FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss", TimeZone.getTimeZone("UTC"));
private CoinfloorUtils() {}
public static Date parseDate(final String date) {
try {
return DATE_FORMAT.parse(date);
} catch (final ParseException e) {
throw new ExchangeException("Illegal date/time format: " + date, e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy