mazipan / mazipan/html-tools

feat: add Unix Timestamp Converter tool

Open
#123 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Summary

Add a timestamp.html tool that converts Unix timestamps to human-readable dates and vice-versa — one of the most consistently searched developer queries.

Motivation

"Unix timestamp to date" and "epoch converter" are among the top dev-tool searches. The conversion is trivial with the native Date API (no library needed) and the result is immediately useful for debugging logs, JWT exp/iat claims, and API responses.

Proposed UX

  • Timestamp → Date panel:
    • Input: epoch in seconds or milliseconds (auto-detected)
    • Outputs: Local datetime, UTC datetime, ISO 8601, relative time ("3 days ago / 2 hours from now")
    • "Now" button fills the input with the current epoch
  • Date → Timestamp panel:
    • <input type="datetime-local"> + timezone offset selector
    • Outputs: epoch seconds and epoch milliseconds, both copyable
  • Live update as you type (debounced)
  • Error state for invalid / out-of-range inputs

Implementation notes

  • Category: Code
  • Slug: timestamp
  • Icon: 🕐
  • No npm dependencies — Date API only; relative time via Intl.RelativeTimeFormat
  • All logic inline in <script>
  • Follow src/_tool-template.html and run bun run generate:sections, bun run generate:index, bun run generate:favicon after adding to tools.json

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading src/_tool-template.html, inspecting existing tools, and reviewing tools.json for the required metadata and generation flow. Add the timestamp tool with both conversion panels, validation, live updates, copyable outputs, and the specified icon and slug, then run bun run generate:sections, bun run generate:index, and bun run generate:favicon; done means the generated indexes and favicon metadata include the new tool.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
tooling, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.