时间转换器

时间在秒、分、小时、天数、周和年之间转换。

结果成果 —
转换 —

输入结果时更新 。

这个计算器给你正确的答案了吗?

关于此计算器

A time converter changes a duration between milliseconds, seconds, minutes, hours, days, weeks, months and years. It converts through the second as a common base, and to keep long spans consistent it fixes a month at the average 30.44 days and a year at 365.25 days so leap years average out.

The everyday anchors are 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day and 7 days in a week. The month and year here are averages rather than calendar values, which is why they will not match a specific date range exactly.

Worked example: to convert 3 hours to minutes, multiply by 60, giving 180 minutes. To find the seconds in a day, 24 × 60 × 60 = 86,400. A results table shows the same duration in every unit from milliseconds to decades, useful for timeouts, billing periods and project schedules.

经常问到的问题

一天有多少秒?

一天有86,400秒(24×60×60)。一周有604,800秒。

一年有多少小时?

使用365.25天的平均年数,每年大约8 766小时,四年中,四分之一天加起来是一个额外的跳跃日。

一个月多长?

月平均为1/12,大约30.44天,因为日历月从28天到31天不等,准确的日历间隔使用日期差异工具。

一天有多少分钟?

每天有1 440分钟(24×60),一周有10 080分钟,这样,定时器和轮班时间就容易了。

为什么这个时间转换器一年使用365.25天?

时间转换器平均在跳跃年吸收的额外的季度日中进行,因此转换年为365.25天。这使得长期转换保持了一致性,尽管与任何一个日历年略有不同。

我如何将秒转换为小时?

Divide the number of seconds by 3,600, since an hour is 60 × 60 seconds. So 7,200 seconds is exactly 2 hours.

❤️ 爱 Calculator.Free? 分享它

𝕏  X Facebook Reddit
API - 使用代码中的计算器

将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →

终点

GET https://calculator.free/api/v1/time/

curl

curl "https://calculator.free/api/v1/time/?amount=1&from=h&to=min"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/time/?" + new URLSearchParams({
    "amount": "1",
    "from": "h",
    "to": "min"
  }));
const data = await r.json();
console.log(data.results);

成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。