Days between dates: Difference between revisions
Content added Content deleted
No edit summary |
(Add SenseTalk implementation) |
||
Line 1,431: | Line 1,431: | ||
3280 |
3280 |
||
71947 |
71947 |
||
</pre> |
|||
=={{header|SenseTalk}}== |
|||
SenseTalk supports date and time calculations in many forms, and many different units of time (such as 'days' in this example). Rounding is needed due to daylight savings time changes. |
|||
<lang sensetalk>set startDate to "2020-03-13" |
|||
set endDate to "2021-07-14" |
|||
put (endDate - startDate) rounded to nearest day |
|||
</lang> |
|||
{{out}} |
|||
<pre> |
|||
488 days |
|||
</pre> |
</pre> |
||