This method (function) will return the associated field from a
Calendar instance. The type parm should be one of the
constants from this class. The default
java.util.TimeZone is used.
Parameters: d - If the type is a long value then it is first converted to a Date.Or a Date should be used. Parameters: type - The type of field to get. The field from Calendar. throws: QueryExecutionException - If the d parm isn't an instance of Long or Date.