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.

Show HN: DateKnight a datetime string formatting reference and translator

13 pointsby mrcolesover 7 years ago

1 comment

mrcolesover 7 years ago
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 未加载