1 package jp.sfjp.armadillo.time;
5 public final class TimeT implements TimeConverter {
7 public TimeT() { // empty
11 public int int32From(long ms) {
12 final long seconds = ms / 1000L;
13 if (seconds > Integer.MAX_VALUE || seconds < Integer.MIN_VALUE) {
14 final String msg = String.format("%d(%s) is out of the range", ms, new Date(ms));
15 throw new IllegalArgumentException(msg);
21 public long int64From(long millisecond) {
23 return millisecond / 1000L;
27 public long toMilliseconds(long time) {