Convert from millis to hex String
问题 I want to set the current time as the major and minor values of a beacon. Lets suppose this is the current time 1465398279009 . I want 9827 to be the value of the major and 9009 the value of the minor. I use a java code to call the shell script. this is my java code Long millis = System.currentTimeMillis(); String time=Long.toString(millis); // String major1=time.substring(...); String major1="99"; String major2="99"; String minor1="99"; String minor2="99"; ProcessBuilder pb2=new