TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Javascript date library

71 pointsby mcxxover 15 years ago

10 comments

midnightmonsterover 15 years ago
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 未加载
rivoover 15 years ago
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.
alexkover 15 years ago
And a JS timezone library: <a href="http://js.fleegix.org/plugins/date/date" rel="nofollow">http://js.fleegix.org/plugins/date/date</a>
unwindover 15 years ago
No support for fortnights?! I'm shocked at the omission of this critical unit of time, used throughout society.
评论 #806188 未加载
评论 #804737 未加载
mildweedover 15 years ago
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>
mtrimpeover 15 years ago
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.
psyklicover 15 years ago
"the day before last Saturday" doesn't work
tdoggetteover 15 years ago
That's very spiffy. I wonder how it compares to some of the smarter Perl date libraries?
callmeedover 15 years ago
Curious if anyone has compared it to the Ruby chronic gem ...
mhansenover 15 years ago
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.