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: Dtdiff: Golang lib,CLI to return the differences for datetime,durations

1 pointsby jftuga11 months ago
What is the duration between two different dates and&#x2F;or times?<p>`start` and `end` can be in various formats, such as:<p>- 11:22:33<p>- 2024-06-01<p>- &quot;2024-06-01 11:22:33&quot; - 2024-06-01T11:22:33.456Z<p>What is the datetime when adding or subtracting a duration?<p>Duration examples include: - 5 minutes 5 seconds<p>- 3 weeks 4 days 5 hours<p>- 8 months 7 days 6 hours 5 minutes 4 seconds<p>- 1 year 2 months 3 days 4 hours 5 minutes 6 second 7 milliseconds 8 microseconds 9 nanoseconds

no comments

no comments