# 阅读时间天数何时变成月数？

**URL:** https://meta.discourse.org/t/when-does-read-time-days-turn-into-months/191819
**Category:** Support
**Created:** [2021年五月27日 15:05 UTC](https://meta.discourse.org/t/when-does-read-time-days-turn-into-months/191819 "2021-05-27T15:05:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![incapaz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/incapaz/32/175057_2.png) [@incapaz](https://meta.discourse.org/u/incapaz)
#### Post date: [2021年五月27日 15:05 UTC](https://meta.discourse.org/t/when-does-read-time-days-turn-into-months/191819/1 "2021-05-27T15:05:04Z")

</div>

![imagen](https://global.discourse-cdn.com/meta/original/3X/7/c/7cb2d60f24ad95b6b29da458971d373345716d2c.jpeg)  
我在另一个论坛的阅读时间已超过 80 天，也就是两个多月。但我看到有些用户的阅读时间显示为 3 个月甚至 5 个月，却没有以 90 天或 150 天的形式显示。

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2021年五月27日 17:29 UTC](https://meta.discourse.org/t/when-does-read-time-days-turn-into-months/191819/2 "2021-05-27T17:29:11Z")

</div>

你需要查看代码；它是开源的。很可能有一个共享函数用于确定应显示的正确时长。

---

<div class="post-metadata">

### Author: ![incapaz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/incapaz/32/175057_2.png) [@incapaz](https://meta.discourse.org/u/incapaz)
#### Post date: [2021年五月27日 17:58 UTC](https://meta.discourse.org/t/when-does-read-time-days-turn-into-months/191819/3 "2021-05-27T17:58:36Z")

</div>

这看起来就是相关的代码片段：

> <https://github.com/discourse/discourse/blob/9581d713724457f453061ca85fb0462fa09d1cdb/app/assets/javascripts/discourse/app/lib/formatter.js#L254-L263>

因为 81 天约为 116640 分钟，小于 129599。谢谢！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年六月26日 17:59 UTC](https://meta.discourse.org/t/when-does-read-time-days-turn-into-months/191819/4 "2021-06-26T17:59:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
