hyTags
HomeHome DocumentationDocumentation

time-is-greater

Checks if one time is after another time.
Parameter
Type
Description
self
Time
The time to compare
other
Time
The time to compare against
return
bool
True if the first time is after the second time, false otherwise
Test Case:Later time is greater
    <div></div>
    
    <time-new hour="14" minute="30" second="45">
    <time-new hour="14" minute="30" second="46">
    <time-is-greater>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Earlier time is not greater
      <div></div>
      
      <time-new hour="14" minute="30" second="46">
      <time-new hour="14" minute="30" second="45">
      <time-is-greater>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed