TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JavaScript Temporal Is Coming

13 点作者 ipster_io4 个月前

4 条评论

paulryanrogers4 个月前
&gt; Time-zone-unaware date&#x2F;time (&quot;Plain&quot;)<p>Why?!<p>The thing I hate most about most SQL DateTime&#x2F;Timestamps are their choice to default to TZ ambiguity. Too often it means everything must actually be UTC nearly all the time, or you get messy data that could be any zone. I.e. It&#x27;s a lossy data type.<p>TZ unaware should not be an option. Or if there&#x27;s truly a case for it then it should at least be some non default, opt in, with &#x27;dangerous&#x27; in the type name(s).
评论 #42818472 未加载
评论 #42810415 未加载
评论 #42810421 未加载
proc04 个月前
Wondering why not use Time instead. Also the use of &quot;plain&quot; in some of those methods, who is coming up with the names, they are verbose. That said it&#x27;s probably going to be wrapped in some module anyway.
评论 #42818474 未加载
klysm4 个月前
I already use it in prod because it is light years better than the alternative
评论 #42809953 未加载
Zecc4 个月前
About time. (not sorry)