I am using a Java library that has a method that wants a time info.
it is described like this:
public void function(byte[] time);
time: The time is provided in 1/100th seconds since midnight as a three bytes integer, starting with the most significant byte.
I don’t know how to do that. I can get time in milliseconds(Sysem.currentTimeInMillisecond). but that gives me milliseconds past since 1 January 1970.
Can anybody help?
Here is the code I have just written. I think it is self explainable enough. The logic of converting int to byte array is stolen from
DataOutputStream.writeInt()