duration
TemporalGenerate human-readable time duration strings like '2h 30m', '45m', '1d 4h'. For time tracking, task duration, and scheduling applications.
Example Outputs
2h 30m45m1d 4h15m3hAPI 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
Related Types
Generate Duration + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.