GET /v1/epochEpoch/Unix timestamp converter
Format Utils lf-format-utils
Turns a computer's timestamp number into a normal date and time, or tells you the current time. Converts a Unix epoch timestamp to human-readable date/time. If no input is provided, returns the current timestamp information.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | integer | No | Unix timestamp (omit for now) |
Response Schema
success (boolean): Operation success
input (string): Original input
now (boolean): Whether current time used
epoch_seconds (integer): Unix seconds
epoch_millis (integer): Unix milliseconds
iso (string): ISO 8601 format
rfc2822 (string): RFC 2822 format
us (string): US date format
cURL Example
curl 'https://lf-format-utils.laminarforge.dev/v1/epoch?input=1704067200' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/epoch'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': 1704067200}
response = requests.get(url, headers=headers, params=params)
print(response.json())