code: public static int getDateTimePart(long m, int part) {
  
          synchronized (tempCalGMT) {
              tempCalGMT.setTimeInMillis(m);
  
              return tempCalGMT.get(part);
          }
      }
docs: Returns the indicated part of the given <code>java.util.Date</code> object.
  @param m the millisecond time value from which to extract the indicated part
  @param part an integer code corresponding to the desired date part
  @return the indicated part of the given <code>java.util.Date</code> object