Skip to content

Add duration / time interval detection#29

Open
Mustansir-06 wants to merge 1 commit intomelihbirim:mainfrom
Mustansir-06:feat/duration-detector
Open

Add duration / time interval detection#29
Mustansir-06 wants to merge 1 commit intomelihbirim:mainfrom
Mustansir-06:feat/duration-detector

Conversation

@Mustansir-06
Copy link
Copy Markdown

✨ New Feature: Duration / Time Interval Detection

This PR adds support for detecting duration and time interval formats such as:

  • 2h 30m, 1d, 45min, 30s
  • Combined values like 1h30m45s
  • Decimal durations like 2.5h

Changes

  • Added isDuration() detector
  • Integrated duration detection into infer()
  • Added comprehensive test coverage
  • Updated TypeScript definitions
  • Updated README with usage examples
  • All tests and lint checks pass

Checklist

  • Tests passing
  • Lint passing
  • README updated
  • Type definitions updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant