본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

cst-time

xuanpass 제작

Coding Agents & IDEs
624clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Provides methods and tools for obtaining local host CST (China Standard Time)

설명

이 스킬이 하는 일

Covers methods for obtaining and working with China Standard Time (CST, UTC+8) across Windows, Linux, macOS, and multiple programming languages including Python, JavaScript, Java, Go, and C#. Includes time zone conversion formulas, formatting patterns, and scheduling examples. CST does not observe daylight saving time, which simplifies year-round handling.

Because CST does not observe daylight saving time, using the Asia/Shanghai IANA identifier works reliably year-round without the seasonal offset adjustments that cause bugs with many other timezone conversions.

사용 시점

  • Scheduling a cron job to fire at 9 AM Beijing business hours
  • Logging distributed server events with consistent CST timestamps
  • Converting user-submitted timestamps from EST or PST to CST
  • Displaying a live CST clock in a web application for Chinese users
  • Syncing API calls with Chinese market operating hours

예시 워크플로

입력

User asks: Get the current time in China Standard Time using Python

에이전트
  1. 1

    Import pytz and datetime libraries

  2. 2

    Create a timezone object using 'Asia/Shanghai'

  3. 3

    Call datetime.now() with the CST timezone applied

  4. 4

    Format the result as YYYY-MM-DD HH:mm:ss

  5. 5

    Print the formatted CST timestamp

출력

A Python snippet that prints the current CST time, e.g. '2026-03-19 14:30:00'

요구 사항

  • TimezoneDB API key (required only for TimezoneDB online API method)
  • Google Maps API key (required only for Google Maps Time Zone API method)

설치

clawhub install xuanpass/cst-time

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크