| | |
| | | import java.nio.ByteBuffer; |
| | | import java.nio.ByteOrder; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | |
| | | |
| | | public class BTS_DateTime { |
| | |
| | | return ca.getTimeInMillis(); |
| | | } |
| | | |
| | | public Date getDateTime() { |
| | | Calendar ca = Calendar.getInstance(); |
| | | int month_t = month; |
| | | if(month_t > 0) { |
| | | month_t -= 1; |
| | | } |
| | | ca.set(year+2000, month_t, day, hour, minute, second); |
| | | |
| | | return ca.getTime(); |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "FBS9100_DateTime [year=" + year + ", month=" + month + ", day=" + day + ", hour=" + hour + ", minute=" |