private function compareTo0(LocalDateTime $other)
 {
     $cmp = $this->date->compareTo0($other->toLocalDate());
     if ($cmp == 0) {
         $cmp = $this->time->compareTo($other->toLocalTime());
     }
     return $cmp;
 }