public int[] time2LMST(long time){
  int[] result=new int[4];
  long marsTime=Math.round((time - epoch) / 1000f / toEarth);
  result[0]=(int)(marsTime / (secondsInADay));
  marsTime=(int)(marsTime % secondsInADay);
  result[1]=Math.abs((int)(marsTime / secondsInAnHr));
  marsTime=(int)(marsTime % secondsInAnHr);
  result[2]=Math.abs((int)(marsTime / secondsInAMin));
  result[3]=Math.abs((int)(marsTime % secondsInAMin));
  return (result);
}

public int [ ] time2LMST ( long time ) { int [ ] result = new int [ 4 ] ; long marsTime = Math . round ( ( time - epoch ) / 1000f / toEarth ) ; result [ 0 ] = ( int ) ( marsTime / ( secondsInADay ) ) ; marsTime = ( int ) ( marsTime % secondsInADay ) ; result [ 1 ] = Math . abs ( ( int ) ( marsTime / secondsInAnHr ) ) ; marsTime = ( int ) ( marsTime % secondsInAnHr ) ; result [ 2 ] = Math . abs ( ( int ) ( marsTime / secondsInAMin ) ) ; result [ 3 ] = Math . abs ( ( int ) ( marsTime % secondsInAMin ) ) ; return ( result ) ; }
convert unix time to local mean solar time
