hyTags
HomeHome DocumentationDocumentation

time-is-less

Checks if one time is before 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 before the second time, false otherwise
Test Case:Earlier time is less
    <div></div>
    
    <time-new hour="14" minute="30" second="46">
    <time-new hour="14" minute="30" second="45">
    <time-is-less>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Later time is not less
      <div></div>
      
      <time-new hour="14" minute="30" second="45">
      <time-new hour="14" minute="30" second="46">
      <time-is-less>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed