Skip to main content
Glama

devtools-mcp

Convert Timestamp

convert_timestamp

时间戳双向转换,时区统一北京时间(UTC+8)。传入 Unix 时间戳(整数秒或毫秒,自动识别;也接受数字字符串)返回 ISO 8601 北京时间字符串;传入日期/时间字符串(如 2026-09-05、2026-09-05 10:30:00、2026-09-05T10:30:00+08:00)返回 Unix 秒/毫秒时间戳;不传 value 返回当前时间的两种格式。

Input Schema

NameRequiredDescriptionDefault
toNo转换方向提示,"iso"(默认,转北京时间字符串)或 "unix"(转时间戳); 实际方向按 value 类型自动判断iso
valueNoUnix 时间戳(秒/毫秒,整数或数字字符串,自动区分), 或日期时间字符串(ISO 8601、YYYY-MM-DD、YYYY/MM/DD HH:MM 等); 不传或传空字符串则返回当前北京时间

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.