ohls work

This commit is contained in:
7u83
2017-01-06 00:37:21 +01:00
parent af6acdbab1
commit b2680fa71d
2 changed files with 46 additions and 15 deletions

View File

@ -27,15 +27,16 @@ public class Exchange extends Thread {
}
public static long getCurrentTimeSeconds(long div) {
long ct = System.currentTimeMillis() / (1000 * div) * div;
return ct * div;
}
/**
*
* @return
*/
public static long getCurrentTimeSeconds() {
return getCurrentTimeSeconds(1);
long ct = System.currentTimeMillis();
return ct/1000 ;
}
public SortedSet<Quote> getQuoteHistory(long start) {
Quote s = new Quote();