hyTags
HomeHome DocumentationDocumentation

date-time-is-greater

Checks if the first date and time is later than the second.
Parameter
Type
Description
self
DateTime
The first date and time.
other
DateTime
The second date and time to compare.
return
bool
True if the first date and time is later than the second, false otherwise.
Test Case:Later DateTime is greater
    <div></div>
    
    <date-time-new year="2024" month="6" day="15">
    <date-time-new year="2024" month="6" day="16">
    <date-time-is-greater>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Earlier DateTime is not greater
      <div></div>
      
      <date-time-new year="2024" month="6" day="16">
      <date-time-new year="2024" month="6" day="15">
      <date-time-is-greater>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed