Intermediate

年龄(年、月、周、日、时)

将任意出生日期转换为以年、月、周、日、时和分表示的精确年龄。
Enter your date of birth
Defaults to today
Age in days
11,351

Whole days elapsed since birth

31
372
1,621
11,351
小时
272,424
分钟
16,345,440
1995-06-152026-07-1331y 372m 1,621wElapsed from birth to reference date
Step by step
  1. 1

    Elapsed milliseconds

    980,726,400,000
    Milliseconds between the birth date and the reference date.
  2. 2

    Age in days

    floor(980,726,400,000 ÷ 86,400,000) = 11,351
结果仅为一般参考性的估算,并非专业建议——在依赖这些重要结果之前,请务必自行独立核实。 阅读完整免责声明.
快速解答

这个计算器是如何工作的?

输入出生日期和可选的参考日期(默认为今天),即可查看精确年龄。工具报告日历年数和月数,以及已流逝的周、日、时和分的精确计数,每项均向下取整,让您立即知道自己出生了多少天。

公式
ms = reference − birth; days = floor(ms / 86,400,000); weeks = floor(days / 7); hours = floor(ms / 3,600,000); minutes = floor(ms / 60,000); years/months from the calendar difference
How this is calculated

输入出生日期,以及可选的参考日期。参考日期默认为今天,保留预填值即可得到当前年龄。两个字段均接受ISO日期格式(YYYY-MM-DD);工具将其解析为JavaScript Date对象,并以参考日期减出生日期计算已流逝毫秒数。

较大单位有两种推导方式。年和月使用真实日历差:总整月数等于(yearDiff × 12 + monthDiff),若参考日期的日号尚未到达出生日号则减一,年数为月数 ÷ 12的向下取整。周、日、时和分从原始毫秒跨度推导:days = floor(ms / 86,400,000),weeks = floor(days / 7),hours = floor(ms / 3,600,000),minutes = floor(ms / 60,000)。

所有结果均向下取整为整数,因此不足整数的部分直接舍去而非四舍五入。计算器假定参考日期在出生日期之后,对无效日期或早于出生日期的参考日期不返回结果。由于使用天级计算,夏令时切换和闰年自然融入日数和小时数总计中。

常见问题

年和月遵循日历(各月天数不同),而天、周、时和分来源于精确经过时间,因此无论月份长短均保持一致。

使用ISO格式YYYY-MM-DD(例如1995-06-15)。参考日期字段预填为今天,可更改为任意较晚的日期。

每个单位均向下取整为整数,因此不足一周、一天或一小时的部分在完整完成前不计入。

也称为

年龄换算
活了多少天
精确年龄
年龄月数天数
年龄单位换算
出生多少天
年龄天数

APA

TG we-Calculate Editorial Team. (2026). 年龄(年、月、周、日、时) [Online calculator]. TG we-Calculate. https://we-calculate.com/zh/calculator/age-in-units

Chicago

TG we-Calculate Editorial Team. "年龄(年、月、周、日、时)." TG we-Calculate. 2026. https://we-calculate.com/zh/calculator/age-in-units.

IEEE

TG we-Calculate Editorial Team, "年龄(年、月、周、日、时)," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/zh/calculator/age-in-units

BibTeX

@misc{wecalculate_age_in_units, title = {年龄(年、月、周、日、时)}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/zh/calculator/age-in-units}}, year = {2026}, note = {TG we-Calculate} }

这个计算器对您有帮助吗?