A
securityF
licenseA
qualityA Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to get current time information and perform timezone conversions using IANA timezone names.
Last updated -
2
1
用于时间操作的动态 MCP 服务器管理服务。
该服务器通过模型上下文协议 (MCP) 提供几个与时间相关的工具。
获取服务器的当前时区。
text
:时区字符串。Asia/Tokyo
获取当前 Unix 时间戳(自纪元以来的秒数)。
text
:字符串形式的 Unix 时间戳。1746627290
将 Unix 时间戳转换为格式化的日期时间字符串。
unixtime
( number
,必需):要转换的 Unix 时间戳。1746627290
timezone
( string
,可选):要使用的时区(默认值:服务器的时区)。Asia/Tokyo
isISO
( boolean
,可选):如果为 true,则返回 ISO 8601 格式;否则,返回YYYY-MM-DD HH:mm:ss
。true
text
:格式化的日期时间字符串。2025-01-01 01:01:01
或2025-01-01T01:01:01+09:00
将日期时间字符串转换为 Unix 时间戳(自纪元以来的毫秒数)。
time
( string
,必需):要转换的日期时间字符串。2025-01-01 01:01:01
timezone
( string
,可选):要使用的时区(默认值:服务器的时区)。Asia/Tokyo
text
:字符串形式的 Unix 时间戳。1746627290000
以YYYY-MM-DD HH:mm:ss
格式获取当前日期和时间。
timezone
( string
,可选):要使用的时区(默认值:服务器的时区)。Asia/Tokyo
text
:格式化的当前日期和时间。2025-01-01 01:01:01
以 ISO 8601 格式获取当前日期和时间。
timezone
( string
,可选):要使用的时区(默认值:服务器的时区)。Asia/Tokyo
text
:ISO 8601 格式的当前日期和时间。2025-05-07T23:03:27+09:00
计算两个日期时间字符串之间的差异。
from
( string
,必需):开始日期时间。2025-01-01 01:01:01
to
( string
,必需):结束日期时间。2025-01-02 02:02:02
unit
( "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year"
,可选,默认值: "second"
):差异的单位。"hour"
text
:指定单位中两个日期时间之间的差值。3600
获取当前日期时间
获取已用时间
.vscode/mcp.json
~/Library/Application Support/Code/User/settings.json
英文
英文
local-only server
The server can only run on the client's local machine because it depends on local resources.
用于时间操作任务的模型上下文协议服务器,使 AI 模型能够获取当前日期/时间并计算时间戳之间的持续时间。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/t-shiratori/time-tools-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server