使用可自定义的选项将天数转换为小时数。
Input text
Result
工具选项
营业时间名称
将字符串 hours 附加到输出值
将天数转换为小时数
此工具可让您将天数转换为小时数。您可以输入数字或单位形式的天数,该工具会将其转换为小时数。您还可以选择在输出值后附加“小时”后缀。
将天数转换为小时数 示例
点击尝试!
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.
营业时间名称
将字符串 hours 附加到输出值
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.
营业时间名称
将字符串 hours 附加到输出值
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.
营业时间名称
将字符串 hours 附加到输出值