Unit Convert
Number Conversion Endpoint
This endpoint converts a time abbreviation (e.g., 10s
for 10 seconds) into a readable full format (e.g., 10 seconds
), and provides equivalents in other units such as seconds, minutes, hours, days, and weeks.
Endpoint Details
URL:https://api.erensko.xyz/v1/unit-convert
Method: GET
Description:
This endpoint accepts a time abbreviation in a given unit (ms
, s
, m
, h
, d
, w
, etc.) and converts it into a readable time format along with equivalent values in other units (seconds, minutes, hours, etc.).
URL Parameters
number
The numeric value to be converted.
unit
The unit of the value (ms
, seconds
, minutes
, hours
, days
, weeks
, nanoseconds
, microseconds
).
target
The unit to convert the value to (if specified). Supported values: ms
, seconds
, minutes
, hours
, days
, weeks
, nanoseconds
, microseconds
.
Headers
Authorization
Request Example
Response Example
Last updated