hyTags
HomeHome DocumentationDocumentation

time-is-equal

Checks if two times are equal.
Parameter
Type
Description
self
Time
The first time to compare
other
Time
The second time to compare
return
bool
True if the times are equal, false otherwise
Test Case:Equal times are equal
    <div></div>
    
    <time-new hour="14" minute="30" second="45">
    <time-new hour="14" minute="30" second="45">
    <time-is-equal>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Different times are not equal
      <div></div>
      
      <time-new hour="14" minute="30" second="46">
      <time-new hour="14" minute="30" second="45">
      <time-is-equal>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed