use DateTime::Incomplete
In reply to Re: Detecting whether DateTime object has a time component or not? by tobyink in thread Detecting whether DateTime object has a time component or not? by perlancar