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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: A simple time conversion site for developers

9 点作者 nobody_nothing将近 4 年前

2 条评论

massung将近 4 年前
Pretty neat!<p>Some UI suggestions:<p>* When adding a custom format, allow for an &quot;X&quot; to remove it as well.<p>* Clicking on any of the output formats should automatically copy the text to the clipboard. I like that it selects it, but it also selects the label as well (at least on FF). A straight copy would be more useful.<p>And some date&#x2F;time suggestions from someone who&#x27;s had to deal a LOT with dates and times. I realize you&#x27;re using libraries for a lot of the heavy lifting, and maybe some of the ideas below aren&#x27;t what you want to do with it, but they are real needs:<p>* Allow setting a custom epoch for both input and output.<p>* Allow setting a location other than the current location for output. Likewise, allow enabling&#x2F;disabling of daylight savings for the user-provided location.<p>* It&#x27;s currently impossible to represent any date before Jan 1, 100 AD.<p>* Non-Gregorian calendar support would be really, really nice, too (e.g. it&#x27;s currently 4718 AH using the Chinese calendar and 1442 in the Islamic calendar).<p>To date I&#x27;ve just been using <a href="https:&#x2F;&#x2F;www.epochconverter.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.epochconverter.com&#x2F;</a> for a lot of my day-to-day work, but I like your input more. You may find some ideas there as well.
评论 #27557657 未加载
nobody_nothing将近 4 年前
As someone who maintains an eCommerce WordPress site, I find writing code that deals with datetimes to be extremely onerous.<p>I’m always bopping between various conversion sites to debug my outputs. I wanted a simple, uncluttered page where I could do all my conversions in one place. I’m hoping <a href="https:&#x2F;&#x2F;time.lol" rel="nofollow">https:&#x2F;&#x2F;time.lol</a> becomes that spot.<p>I&#x27;d appreciate any feedback you have to offer!<p><i>Planned improvements:</i><p>- Make copying outputted dates easier<p>- Add a timezone picker for the input<p>- Add an output row that allows you to see the date in any timezone you wish<p>- Make the design more legible &#x2F; aesthetically pleasing
评论 #27552555 未加载