| | |
| | | } |
| | | FactorType.TIME -> { |
| | | val year = b[i].toInt(16).toString().run { numberFormat(this) } |
| | | val month = b[i+1].toInt(16).toString().run { numberFormat(this) } |
| | | val day = b[i+2].toInt(16).toString().run { numberFormat(this) } |
| | | val hour = b[i+3].toInt(16).toString().run { numberFormat(this) } |
| | | val minute = b[i+4].toInt(16).toString().run { numberFormat(this) } |
| | | val month = b[i + 1].toInt(16).toString().run { numberFormat(this) } |
| | | val day = b[i + 2].toInt(16).toString().run { numberFormat(this) } |
| | | val hour = b[i + 3].toInt(16).toString().run { numberFormat(this) } |
| | | val minute = b[i + 4].toInt(16).toString().run { numberFormat(this) } |
| | | val second = b[i + 5].toInt(16).toString().run { numberFormat(this) } |
| | | val date = "20$year-$month-$day $hour:$minute:$second" |
| | | val time = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(date).time |