public Day(Date time,TimeZone zone,Locale locale){
  ParamChecks.nullNotPermitted(time,"time");
  ParamChecks.nullNotPermitted(zone,"zone");
  ParamChecks.nullNotPermitted(locale,"locale");
  Calendar calendar=Calendar.getInstance(zone,locale);
  calendar.setTime(time);
  int d=calendar.get(Calendar.DAY_OF_MONTH);
  int m=calendar.get(Calendar.MONTH) + 1;
  int y=calendar.get(Calendar.YEAR);
  this.serialDate=SerialDate.createInstance(d,m,y);
  peg(calendar);
}

public Day ( Date time , TimeZone zone , Locale locale ) { ParamChecks . nullNotPermitted ( time , "time" ) ; ParamChecks . nullNotPermitted ( zone , "zone" ) ; ParamChecks . nullNotPermitted ( locale , "locale" ) ; Calendar calendar = Calendar . getInstance ( zone , locale ) ; calendar . setTime ( time ) ; int d = calendar . get ( Calendar . DAY_OF_MONTH ) ; int m = calendar . get ( Calendar . MONTH ) + 1 ; int y = calendar . get ( Calendar . YEAR ) ; this . serialDate = SerialDate . createInstance ( d , m , y ) ; peg ( calendar ) ; }
constructs a new instance , based on a particular date / time and time zone .
