hyTags
HomeHome DocumentationDocumentation

time-to-date-time

Combines a time with a date to create a datetime.
Parameter
Type
Description
self
Time
The time to combine
date
Date
The date to combine with the time
return
dateTime
A datetime combining the specified time and date
Test Case:Convert time to datetime preserves hour
    <div></div>
    
    <date-new year="2024" month="6" day="15">
    <time-new hour="14" minute="30" second="45">
    <time-to-date-time>
    <date-time-get component="hour">
    <assert-equal value="14" type="number">
    
    👆 Try to change something!
  • Test Case:Convert time to datetime preserves date
      <div></div>
      
      <date-new year="2024" month="6" day="15">
      <time-new hour="14" minute="30" second="45">
      <time-to-date-time>
      <date-time-get component="day">
      <assert-equal value="15" type="number">
      
      👆 Try to change something!
    • Test succeeded Test failed