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: My Weekend Project – Automatically determine date format string

28 pointsby lotkowskimover 7 years ago

5 comments

anonfunctionover 7 years ago
Interesting that there is another tool[1] on Show HN right now that does this but for strftime instead of moment.js, I guess I need to build one for Golang&#x27;s weird time formatting.<p>1. <a href="http:&#x2F;&#x2F;strftime.guru&#x2F;" rel="nofollow">http:&#x2F;&#x2F;strftime.guru&#x2F;</a>
评论 #16371997 未加载
评论 #16362733 未加载
continuationalover 7 years ago
I made a similar tool that could take almost arbitrery text strings like “mar 27, ’09” or “07&#x2F;08&#x2F;97” and generate a list of all valid interpretations. Eg. “07&#x2F;08&#x2F;97” would generate [{d: 7, m: 8, y: 97}, {d: 8, m: 7, y: 97}], but not any where 97 is a day or month, since that wouldn’t be a valid date.
fiatjafover 7 years ago
I don&#x27;t know how it is supposed to work: <a href="https:&#x2F;&#x2F;screenshots.firefox.com&#x2F;43Qs5xpvJ3Jm1oHi&#x2F;date-format.xyz" rel="nofollow">https:&#x2F;&#x2F;screenshots.firefox.com&#x2F;43Qs5xpvJ3Jm1oHi&#x2F;date-format...</a><p>Why are there two different fields? I imagined only one would do the job.
评论 #16362729 未加载
lotkowskimover 7 years ago
Need to clean up the code and then I will upload it to Github :) Also let me know if there are any formats that don&#x27;t work for you.
lozzoover 7 years ago
just a suggestion but can we get a bit more than one page with a couple of fields ? It&#x27;s okay to get straight to the point and being minimalistic but a few infos about the author and whether there is a github repo for the code... those things would help
评论 #16370695 未加载