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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: DateKnight a datetime string formatting reference and translator

13 点作者 mrcoles超过 7 年前

1 comment

mrcoles超过 7 年前
repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;mrcoles&#x2F;dateknight" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mrcoles&#x2F;dateknight</a><p>My goal was to not have to dig around for the unique documentation for whatever language&#x2F;library I was using the moment to format a datetime string.<p>By unifying the codes across different languages, I was able to make a universal translator that could convert between any of the ones I had supported (and provide a structured autocomplete search too).<p>It’s not perfect, but hopefully makes some other folks’ lives easier!<p>I also made a convenience library on top of cheeriojs that supports all of their traversing methods via pseudo-classes in the query string: <a href="https:&#x2F;&#x2F;github.com&#x2F;mrcoles&#x2F;pseudo-cheerio" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mrcoles&#x2F;pseudo-cheerio</a>
评论 #16278970 未加载