MockHero

duration

Temporal

Generate human-readable time duration strings like '2h 30m', '45m', '1d 4h'. For time tracking, task duration, and scheduling applications.

Example Outputs

2h 30m45m1d 4h15m3h

API Usage

Send a POST request to generate duration data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "duration",
          "type": "duration"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Time tracking apps
  • Task duration fields
  • Meeting length testing
  • Project estimation testing

Quick Info

Field Type
duration
Category
Temporal
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate duration data instantly in the playground.

Generate Duration + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free