static int getCustomTsFromMillis(int currTimeMillis) { double time = currTimeMillis/1000; time -= C_CUSTOM_TS_OFFSET; return time.toInt(); }