code: public static int[] timeToFields(long time, int[] fields) {
          if (fields == null || fields.length < 6) {
              fields = new int[6];
          }
          long[] remainder = new long[1];
          long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder);
          dayToFields(day, fields);
          fields[5] = (int)remainder[0];
          return fields;
      }
docs: /*
  Convert long time to date/time fields
  
  result[0] : year
  result[1] : month
  result[2] : dayOfMonth
  result[3] : dayOfWeek
  result[4] : dayOfYear
  result[5] : millisecond in day