'This example calculates how many hours there are in 1 day, in one week (7 days), in one month (30 days), and in even longer time periods. To see all the results at once, we enter each individual day value on a new line. We also use the "days" suffix in the input and add the "hours" suffix to the output.',
sampleText:`1 day
7days
30days
90days
125days
500days`,
sampleResult:`24 hours
168hours
720hours
2160hours
3000hours
12000hours`,
sampleOptions:{hoursFlag: true}
},
{
title:'Fractional Days to Hours',
description:
'In this example, we convert five decimal fraction day values to hours. Conversion of partial days is similar to the conversion of full days – they are all multiplied by 24. We turn off the option that appends the "hours" string after the converted values and get only the numerical hour values in the output.',
sampleText:`0.2 d
1.5days
25.25
9.999
350.401`,
sampleResult:`4.8
36
606
239.976
8409.624`,
sampleOptions:{hoursFlag: false}
},
{
title:'Number of Hours in a Year',
description:
'In the modern Gregorian calendar, a common year has 365 days and a leap year has 366 days. This makes the true average length of a year to be 365.242199 days. In this example, we load this number in the input field and convert it to the hours. It turns out that there 8765.812776 hours in an average year.',