语言
/v1/timestamp/convert
在 Unix 纪元(秒或毫秒)、ISO 8601 和 RFC 2822 格式之间转换时间戳。 发送任何可识别的格式并接收所有三种表示形式。
The timestamp to convert. Accepts Unix epoch (number), ISO 8601 string, or RFC 2822 string.
Source format hint. One of: unix, unix_ms, iso, auto. Defaults to auto.
curl -X POST https://api.botoi.com/v1/timestamp/convert \ -H "Content-Type: application/json" \ -d '{"timestamp":"1711434800","from":"auto"}'
将不同服务的混合时间戳格式转换为一致的 ISO 8601 格式,以实现统一日志聚合。
将数据库中存储的 Unix 时间戳转换为 ISO 8601 字符串,然后将其发送到前端日期格式化库。
将 API 响应中的纪元时间戳转换为人类可读的日期,以快速验证到期时间、事件日期或缓存标头。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.