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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A Javascript date library

71 点作者 mcxx超过 15 年前

10 条评论

midnightmonster超过 15 年前
I've used the library in a real project, and I'm on the mailing list. FYI, there doesn't seem to be much development activity going on, nor is it so perfect and complete that further development is unneeded. That's not to discourage anyone from using it, since it's the only JS lib I know that fills the same niche, just to let you know you may need to get your hands dirty. (I've got a patch waiting for integration but not enough attention available to test it for use cases that are not mine and really push it through. If you do have the interest and bandwidth to polish whatever improvements you make, you could probably help quite a bit.)
评论 #805494 未加载
评论 #804928 未加载
评论 #804841 未加载
评论 #807003 未加载
评论 #806186 未加载
评论 #804718 未加载
rivo超过 15 年前
My first test was "6.2.2009" and it said "June 2, 2009" where I expected "Feb 6, 2009". So it'll be only usable for an American audience.
alexk超过 15 年前
And a JS timezone library: <a href="http://js.fleegix.org/plugins/date/date" rel="nofollow">http://js.fleegix.org/plugins/date/date</a>
unwind超过 15 年前
No support for fortnights?! I'm shocked at the omission of this critical unit of time, used throughout society.
评论 #806188 未加载
评论 #804737 未加载
mildweed超过 15 年前
Previous related threads:<p><a href="http://news.ycombinator.com/item?id=84070" rel="nofollow">http://news.ycombinator.com/item?id=84070</a><p><a href="http://news.ycombinator.com/item?id=630258" rel="nofollow">http://news.ycombinator.com/item?id=630258</a>
mtrimpe超过 15 年前
I had the strangest bug with this library on Konfabulator a while ago where all Date.toString()'s returned an object instead of a string.<p>Not really a useful thing to know but I wanted to post it anyhow.
psyklic超过 15 年前
"the day before last Saturday" doesn't work
tdoggette超过 15 年前
That's very spiffy. I wonder how it compares to some of the smarter Perl date libraries?
callmeed超过 15 年前
Curious if anyone has compared it to the Ruby chronic gem ...
mhansen超过 15 年前
That interface... it's so fluent. I love javascript, for just the reason that it's possible to have beautiful interfaces like this.<p><i>Date.today().add(3).days();</i><p>Be even better if it let you leave off the brackets like ruby, but oh well.