Token导航 LogoToken导航

Agent Skill · 研究检索

cst-time(中部时间)

cst-time 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cst-time 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 5,081。

总安装 27,983周安装 1,132GitHub Stars 公开资料未说明下载 8,784核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cst-time(中部时间)
来源仓库:https://github.com/xuanpass/cst-time
安装命令:
openclaw skills install cst-time
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cst-time

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

提供获取本地主机CST(中国标准时间)的方法和工具。当用户需要获取当前 CST 时间、转换时区或在脚本和应用程序中使用中国标准时间时调用。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install cst-time;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cst-time 怎么安装?

在终端执行 openclaw skills install cst-time。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cst-time 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cst-time 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

cst-time 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

cst-time 用的人多吗?

公开数据是累计安装 27,983 次,近一周安装 1,132 次,下载 8,784 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cst-time 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cst-time

中部时间 · 本页

27,983—需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
cst-time
description
Provides methods and tools for obtaining local host CST (China Standard Time). Invoke when user needs to get current CST time, convert time zones, or work with China Standard Time in scripts and applications.

CST Time (China Standard Time)

Overview

This skill provides comprehensive guidance for obtaining and working with China Standard Time (CST), which is UTC+8 and used throughout mainland China. It covers various methods for getting local CST time, time zone conversions, and integration with different programming languages and systems.

Purpose

CST Time skill helps in:

  • Getting current CST time from local system
  • Converting between different time zones and CST
  • Integrating CST time handling in applications
  • Scheduling tasks based on CST
  • Displaying and formatting CST time correctly
  • Handling daylight saving time considerations (CST doesn't observe DST)

CST Time Zone Information

Time Zone Details:

  • Name: China Standard Time (CST)
  • UTC Offset: UTC+8
  • Daylight Saving Time: Not observed
  • Region: Mainland China
  • IANA Time Zone ID: Asia/Shanghai

Important Notes:

  • CST is 8 hours ahead of Coordinated Universal Time (UTC)
  • China does not observe daylight saving time
  • CST is used consistently year-round
  • Time zone ID for programming: Asia/Shanghai

Getting CST Time

1. Using System Commands

Windows (PowerShell)

Get current system time (assumed to be CST):

Get-Date

Get CST time with explicit time zone:

[System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "China Standard Time")

Format CST time:

Get-Date -Format "yyyy-MM-dd HH:mm:ss"
Linux/Unix (Bash)

Get current system time:

date

Get CST time explicitly:

TZ='Asia/Shanghai' date

Format CST time:

date +"%Y-%m-%d %H:%M:%S"
macOS (Bash)

Get current system time:

date

Get CST time explicitly:

TZ='Asia/Shanghai' date

2. Using Programming Languages

Python

Get current CST time:

from datetime import datetime
import pytz

# Get current CST time
cst_tz = pytz.timezone('Asia/Shanghai')
cst_time = datetime.now(cst_tz)

print(f"Current CST time: {cst_time}")
print(f"Formatted: {cst_time.strftime('%Y-%m-%d %H:%M:%S')}")

Convert UTC to CST:

from datetime import datetime
import pytz

# Get UTC time
utc_time = datetime.utcnow().replace(tzinfo=pytz.UTC)

# Convert to CST
cst_time = utc_time.astimezone(pytz.timezone('Asia/Shanghai'))

print(f"UTC: {utc_time}")
print(f"CST: {cst_time}")

Convert any timezone to CST:

from datetime import datetime
import pytz

# Example: Convert New York time to CST
ny_tz = pytz.timezone('America/New_York')
cst_tz = pytz.timezone('Asia/Shanghai')

ny_time = datetime.now(ny_tz)
cst_time = ny_time.astimezone(cst_tz)

print(f"New York: {ny_time}")
print(f"CST: {cst_time}")
JavaScript/Node.js

Get current CST time:

// Using Intl API
const cstTime = new Date().toLocaleString('zh-CN', {
    timeZone: 'Asia/Shanghai',
    hour12: false
});
console.log('Current CST time:', cstTime);

// Using moment-timezone (recommended)
const moment = require('moment-timezone');
const cstTime = moment().tz('Asia/Shanghai').format('YYYY-MM-DD HH:mm:ss');
console.log('Current CST time:', cstTime);

Convert UTC to CST:

const moment = require('moment-timezone');
const utcTime = moment().utc();
const cstTime = utcTime.tz('Asia/Shanghai').format('YYYY-MM-DD HH:mm:ss');
console.log('UTC:', utcTime.format());
console.log('CST:', cstTime);
Java

Get current CST time:

import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

// Get current CST time
ZonedDateTime cstTime = ZonedDateTime.now(ZoneId.of("Asia/Shanghai"));
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

System.out.println("Current CST time: " + cstTime.format(formatter));

Convert UTC to CST:

import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.Instant;

// Get UTC time and convert to CST
Instant utcTime = Instant.now();
ZonedDateTime cstTime = utcTime.atZone(ZoneId.of("Asia/Shanghai"));

System.out.println("UTC: " + utcTime);
System.out.println("CST: " + cstTime);
Go

Get current CST time:

package main

import (
    "fmt"
    "time"
)

func main() {
    // Get current CST time
    cstTime := time.Now().In(time.FixedZone("CST", int(8*3600)))
    fmt.Println("Current CST time:", cstTime.Format("2006-01-02 15:04:05"))
}
C#

Get current CST time:

using System;

// Get current CST time
TimeZoneInfo cstZone = TimeZoneInfo.FindSystemTimeZoneById("China Standard Time");
DateTime cstTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, cstZone);

Console.WriteLine($"Current CST time: {cstTime:yyyy-MM-dd HH:mm:ss}");

3. Using Online APIs

World Time API:

curl "http://worldtimeapi.org/api/timezone/Asia/Shanghai"

TimezoneDB API:

curl "http://api.timezonedb.com/v1/get-time-zone?key=YOUR_API_KEY&by=zone&zone=Asia/Shanghai"

Google Maps Time Zone API:

curl "https://maps.googleapis.com/maps/api/timezone/json?location=39.9042,116.4074&timestamp=1331161200&key=YOUR_API_KEY"

Time Zone Conversions

1. UTC to CST

Formula:

CST = UTC + 8 hours

Python Example:

from datetime import datetime, timedelta

# UTC to CST
utc_time = datetime.utcnow()
cst_time = utc_time + timedelta(hours=8)

print(f"UTC: {utc_time}")
print(f"CST: {cst_time}")

2. CST to UTC

Formula:

UTC = CST - 8 hours

Python Example:

from datetime import datetime, timedelta

# CST to UTC
cst_time = datetime.now()
utc_time = cst_time - timedelta(hours=8)

print(f"CST: {cst_time}")
print(f"UTC: {utc_time}")

3. Other Time Zones to CST

Common conversions:

Time ZoneUTC OffsetCST OffsetConversion
EST (Eastern)UTC-5+13 hoursEST + 13 = CST
PST (Pacific)UTC-8+16 hoursPST + 16 = CST
GMT (Greenwich)UTC+0+8 hoursGMT + 8 = CST
JST (Japan)UTC+9-1 hourJST - 1 = CST
AEST (Australia)UTC+10-2 hoursAEST - 2 = CST

Formatting CST Time

Common Format Patterns

ISO 8601 Format:

2026-02-10T21:30:45+08:00

Standard Format:

2026-02-10 21:30:45

Chinese Format:

2026年2月10日 21:30:45

Time Only:

21:30:45

Date Only:

2026-02-10

Programming Language Formatting

Python:

from datetime import datetime

cst_time = datetime.now()
formats = {
    'ISO 8601': cst_time.isoformat(),
    'Standard': cst_time.strftime('%Y-%m-%d %H:%M:%S'),
    'Chinese': cst_time.strftime('%Y年%m月%d日 %H:%M:%S'),
    'Time only': cst_time.strftime('%H:%M:%S'),
    'Date only': cst_time.strftime('%Y-%m-%d')
}

for name, formatted in formats.items():
    print(f"{name}: {formatted}")

JavaScript:

const moment = require('moment-timezone');
const cstTime = moment().tz('Asia/Shanghai');

const formats = {
    'ISO 8601': cstTime.format(),
    'Standard': cstTime.format('YYYY-MM-DD HH:mm:ss'),
    'Chinese': cstTime.format('YYYY年MM月DD日 HH:mm:ss'),
    'Time only': cstTime.format('HH:mm:ss'),
    'Date only': cstTime.format('YYYY-MM-DD')
};

for (const [name, formatted] of Object.entries(formats)) {
    console.log(`${name}: ${formatted}`);
}

Best Practices

1. Time Zone Handling

Recommendations:

  • Always store times in UTC and convert to CST for display
  • Use IANA time zone IDs (e.g., Asia/Shanghai) instead of offsets
  • Handle daylight saving time properly (CST doesn't observe DST)
  • Test time zone conversions thoroughly
  • Document time zone assumptions in code

2. Time Display

Recommendations:

  • Display time in user's preferred format
  • Include time zone information when displaying CST
  • Use relative time (e.g., "2 hours ago") for recent events
  • Consider cultural preferences for time formatting
  • Provide options for 12-hour and 24-hour formats

3. Time Storage

Recommendations:

  • Store timestamps in UTC in databases
  • Include time zone information in data models
  • Use appropriate data types for timestamps (e.g., TIMESTAMP)
  • Consider time zone changes in historical data
  • Document time zone handling in data schemas

4. Error Handling

Recommendations:

  • Validate time inputs
  • Handle invalid time zone IDs gracefully
  • Provide clear error messages for time-related failures
  • Test edge cases (leap years, time zone transitions)
  • Log time-related errors for debugging

Common Use Cases

1. Scheduling Tasks

Example: Schedule a task at specific CST time:

from datetime import datetime, timedelta
import pytz

# Target CST time
target_cst = datetime(2026, 2, 10, 22, 0, 0, tzinfo=pytz.timezone('Asia/Shanghai'))

# Calculate time until task
now = datetime.now(pytz.timezone('Asia/Shanghai'))
time_until = target_cst - now

print(f"Task scheduled for: {target_cst}")
print(f"Time until task: {time_until}")

2. Logging with CST Time

Example: Log events with CST timestamps:

import logging
from datetime import datetime
import pytz

# Configure logging with CST time
cst_tz = pytz.timezone('Asia/Shanghai')
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s - %(levelname)s - %(message)s',
    datefmt='%Y-%m-%d %H:%M:%S'
)

# Log event
logging.info("Event occurred at CST time")

3. Displaying CST Time in Web Applications

Example: Display current CST time on a webpage:

<!DOCTYPE html>
<html>
<head>
    <title>CST Time Display</title>
</head>
<body>
    <div id="cst-time">Loading...</div>
  
    <script>
        function updateCSTTime() {
            const options = {
                timeZone: 'Asia/Shanghai',
                hour12: false,
                year: 'numeric',
                month: '2-digit',
                day: '2-digit',
                hour: '2-digit',
                minute: '2-digit',
                second: '2-digit'
            };
            const cstTime = new Date().toLocaleString('zh-CN', options);
            document.getElementById('cst-time').textContent = 'CST: ' + cstTime;
        }
    
        // Update every second
        setInterval(updateCSTTime, 1000);
        updateCSTTime();
    </script>
</body>
</html>

4. Converting User Input to CST

Example: Convert user-provided time to CST:

from datetime import datetime
import pytz
from dateutil import parser

# User input time (could be any format)
user_input = "2026-02-10 14:30:00"

# Parse user input
user_time = parser.parse(user_input)

# Assume user time is in their local timezone
user_tz = pytz.timezone('America/New_York')
user_time = user_tz.localize(user_time)

# Convert to CST
cst_tz = pytz.timezone('Asia/Shanghai')
cst_time = user_time.astimezone(cst_tz)

print(f"User time: {user_time}")
print(f"CST time: {cst_time}")

Troubleshooting

Common Issues

IssuePossible CauseSolution
Wrong time displayedSystem time zone not set to CSTChange system time zone to Asia/Shanghai
Time off by 1 hourDaylight saving time confusionRemember CST doesn't observe DST
Time conversion errorsIncorrect time zone IDUse Asia/Shanghai instead of CST
Time not updatingCaching or stale dataClear cache and refresh
Time display issuesFormat string errorsVerify format string syntax

Debugging Tips

  1. Verify system time zone:

- Windows: Check Date & Time settings - Linux: Check /etc/timezone or timedatectl - macOS: Check System Preferences > Date & Time

  1. Test time zone conversions:

- Use known reference times - Verify conversions with multiple tools - Check for daylight saving time issues

  1. Monitor time-related logs:

- Look for time zone warnings - Check for conversion errors - Verify timestamp consistency

Conclusion

Working with CST (China Standard Time) requires understanding of time zone handling, proper conversion methods, and careful attention to formatting and display. By following the guidance in this skill, you can:

  • Accurately obtain and display CST time
  • Convert between different time zones and CST
  • Integrate CST time handling in applications
  • Schedule tasks based on CST
  • Handle time-related operations correctly and consistently

Remember that CST is UTC+8 year-round and does not observe daylight saving time, which simplifies time handling compared to many other time zones. Always test time-related functionality thoroughly and handle edge cases appropriately.

平台分布

OpenClaw

71.59%
按下载量换算6,288

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills