public CustomDateTime(int timestamp,boolean beginning){
  this.beginning=beginning;
  calendar=Calendar.getInstance();
  calendar.setTimeInMillis(1000L * timestamp);
}

public CustomDateTime ( int timestamp , boolean beginning ) { this . beginning = beginning ; calendar = Calendar . getInstance ( ) ; calendar . setTimeInMillis ( 1000L * timestamp ) ; }
set the time to an absolute date .
