[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M777WNTB2E3MHHY6G5A2VCZ1":3,"skill-same:01M777WNTB2E3MHHY6G5A2VCZ1":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M777WNTB2E3MHHY6G5A2VCZ1","cst-time",null,"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.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxuanpass\u002Fcst-time\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cst-time\ndescription: \"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.\"\n---\n# CST Time (China Standard Time)\n\n## Overview\n\nThis 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.\n\n## Purpose\n\nCST Time skill helps in:\n\n- Getting current CST time from local system\n- Converting between different time zones and CST\n- Integrating CST time handling in applications\n- Scheduling tasks based on CST\n- Displaying and formatting CST time correctly\n- Handling daylight saving time considerations (CST doesn't observe DST)\n\n## CST Time Zone Information\n\n**Time Zone Details:**\n\n- **Name**: China Standard Time (CST)\n- **UTC Offset**: UTC+8\n- **Daylight Saving Time**: Not observed\n- **Region**: Mainland China\n- **IANA Time Zone ID**: Asia\u002FShanghai\n\n**Important Notes:**\n\n- CST is 8 hours ahead of Coordinated Universal Time (UTC)\n- China does not observe daylight saving time\n- CST is used consistently year-round\n- Time zone ID for programming: Asia\u002FShanghai\n\n## Getting CST Time\n\n### 1. Using System Commands\n\n#### Windows (PowerShell)\n\n**Get current system time (assumed to be CST):**\n\n```powershell\nGet-Date\n```\n\n**Get CST time with explicit time zone:**\n\n```powershell\n[System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, \"China Standard Time\")\n```\n\n**Format CST time:**\n\n```powershell\nGet-Date -Format \"yyyy-MM-dd HH:mm:ss\"\n```\n\n#### Linux\u002FUnix (Bash)\n\n**Get current system time:**\n\n```bash\ndate\n```\n\n**Get CST time explicitly:**\n\n```bash\nTZ='Asia\u002FShanghai' date\n```\n\n**Format CST time:**\n\n```bash\ndate +\"%Y-%m-%d %H:%M:%S\"\n```\n\n#### macOS (Bash)\n\n**Get current system time:**\n\n```bash\ndate\n```\n\n**Get CST time explicitly:**\n\n```bash\nTZ='Asia\u002FShanghai' date\n```\n\n### 2. Using Programming Languages\n\n#### Python\n\n**Get current CST time:**\n\n```python\nfrom datetime import datetime\nimport pytz\n\n# Get current CST time\ncst_tz = pytz.timezone('Asia\u002FShanghai')\ncst_time = datetime.now(cst_tz)\n\nprint(f\"Current CST time: {cst_time}\")\nprint(f\"Formatted: {cst_time.strftime('%Y-%m-%d %H:%M:%S')}\")\n```\n\n**Convert UTC to CST:**\n\n```python\nfrom datetime import datetime\nimport pytz\n\n# Get UTC time\nutc_time = datetime.utcnow().replace(tzinfo=pytz.UTC)\n\n# Convert to CST\ncst_time = utc_time.astimezone(pytz.timezone('Asia\u002FShanghai'))\n\nprint(f\"UTC: {utc_time}\")\nprint(f\"CST: {cst_time}\")\n```\n\n**Convert any timezone to CST:**\n\n```python\nfrom datetime import datetime\nimport pytz\n\n# Example: Convert New York time to CST\nny_tz = pytz.timezone('America\u002FNew_York')\ncst_tz = pytz.timezone('Asia\u002FShanghai')\n\nny_time = datetime.now(ny_tz)\ncst_time = ny_time.astimezone(cst_tz)\n\nprint(f\"New York: {ny_time}\")\nprint(f\"CST: {cst_time}\")\n```\n\n#### JavaScript\u002FNode.js\n\n**Get current CST time:**\n\n```javascript\n\u002F\u002F Using Intl API\nconst cstTime = new Date().toLocaleString('zh-CN', {\n    timeZone: 'Asia\u002FShanghai',\n    hour12: false\n});\nconsole.log('Current CST time:', cstTime);\n\n\u002F\u002F Using moment-timezone (recommended)\nconst moment = require('moment-timezone');\nconst cstTime = moment().tz('Asia\u002FShanghai').format('YYYY-MM-DD HH:mm:ss');\nconsole.log('Current CST time:', cstTime);\n```\n\n**Convert UTC to CST:**\n\n```javascript\nconst moment = require('moment-timezone');\nconst utcTime = moment().utc();\nconst cstTime = utcTime.tz('Asia\u002FShanghai').format('YYYY-MM-DD HH:mm:ss');\nconsole.log('UTC:', utcTime.format());\nconsole.log('CST:', cstTime);\n```\n\n#### Java\n\n**Get current CST time:**\n\n```java\nimport java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeFormatter;\n\n\u002F\u002F Get current CST time\nZonedDateTime cstTime = ZonedDateTime.now(ZoneId.of(\"Asia\u002FShanghai\"));\nDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\nSystem.out.println(\"Current CST time: \" + cstTime.format(formatter));\n```\n\n**Convert UTC to CST:**\n\n```java\nimport java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.Instant;\n\n\u002F\u002F Get UTC time and convert to CST\nInstant utcTime = Instant.now();\nZonedDateTime cstTime = utcTime.atZone(ZoneId.of(\"Asia\u002FShanghai\"));\n\nSystem.out.println(\"UTC: \" + utcTime);\nSystem.out.println(\"CST: \" + cstTime);\n```\n\n#### Go\n\n**Get current CST time:**\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"time\"\n)\n\nfunc main() {\n    \u002F\u002F Get current CST time\n    cstTime := time.Now().In(time.FixedZone(\"CST\", int(8*3600)))\n    fmt.Println(\"Current CST time:\", cstTime.Format(\"2006-01-02 15:04:05\"))\n}\n```\n\n#### C#\n\n**Get current CST time:**\n\n```csharp\nusing System;\n\n\u002F\u002F Get current CST time\nTimeZoneInfo cstZone = TimeZoneInfo.FindSystemTimeZoneById(\"China Standard Time\");\nDateTime cstTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, cstZone);\n\nConsole.WriteLine($\"Current CST time: {cstTime:yyyy-MM-dd HH:mm:ss}\");\n```\n\n### 3. Using Online APIs\n\n**World Time API:**\n\n```bash\ncurl \"http:\u002F\u002Fworldtimeapi.org\u002Fapi\u002Ftimezone\u002FAsia\u002FShanghai\"\n```\n\n**TimezoneDB API:**\n\n```bash\ncurl \"http:\u002F\u002Fapi.timezonedb.com\u002Fv1\u002Fget-time-zone?key=YOUR_API_KEY&by=zone&zone=Asia\u002FShanghai\"\n```\n\n**Google Maps Time Zone API:**\n\n```bash\ncurl \"https:\u002F\u002Fmaps.googleapis.com\u002Fmaps\u002Fapi\u002Ftimezone\u002Fjson?location=39.9042,116.4074&timestamp=1331161200&key=YOUR_API_KEY\"\n```\n\n## Time Zone Conversions\n\n### 1. UTC to CST\n\n**Formula:**\n\n```\nCST = UTC + 8 hours\n```\n\n**Python Example:**\n\n```python\nfrom datetime import datetime, timedelta\n\n# UTC to CST\nutc_time = datetime.utcnow()\ncst_time = utc_time + timedelta(hours=8)\n\nprint(f\"UTC: {utc_time}\")\nprint(f\"CST: {cst_time}\")\n```\n\n### 2. CST to UTC\n\n**Formula:**\n\n```\nUTC = CST - 8 hours\n```\n\n**Python Example:**\n\n```python\nfrom datetime import datetime, timedelta\n\n# CST to UTC\ncst_time = datetime.now()\nutc_time = cst_time - timedelta(hours=8)\n\nprint(f\"CST: {cst_time}\")\nprint(f\"UTC: {utc_time}\")\n```\n\n### 3. Other Time Zones to CST\n\n**Common conversions:**\n\n| Time Zone        | UTC Offset | CST Offset | Conversion     |\n| ---------------- | ---------- | ---------- | -------------- |\n| EST (Eastern)    | UTC-5      | +13 hours  | EST + 13 = CST |\n| PST (Pacific)    | UTC-8      | +16 hours  | PST + 16 = CST |\n| GMT (Greenwich)  | UTC+0      | +8 hours   | GMT + 8 = CST  |\n| JST (Japan)      | UTC+9      | -1 hour    | JST - 1 = CST  |\n| AEST (Australia) | UTC+10     | -2 hours   | AEST - 2 = CST |\n\n## Formatting CST Time\n\n### Common Format Patterns\n\n**ISO 8601 Format:**\n\n```\n2026-02-10T21:30:45+08:00\n```\n\n**Standard Format:**\n\n```\n2026-02-10 21:30:45\n```\n\n**Chinese Format:**\n\n```\n2026年2月10日 21:30:45\n```\n\n**Time Only:**\n\n```\n21:30:45\n```\n\n**Date Only:**\n\n```\n2026-02-10\n```\n\n### Programming Language Formatting\n\n**Python:**\n\n```python\nfrom datetime import datetime\n\ncst_time = datetime.now()\nformats = {\n    'ISO 8601': cst_time.isoformat(),\n    'Standard': cst_time.strftime('%Y-%m-%d %H:%M:%S'),\n    'Chinese': cst_time.strftime('%Y年%m月%d日 %H:%M:%S'),\n    'Time only': cst_time.strftime('%H:%M:%S'),\n    'Date only': cst_time.strftime('%Y-%m-%d')\n}\n\nfor name, formatted in formats.items():\n    print(f\"{name}: {formatted}\")\n```\n\n**JavaScript:**\n\n```javascript\nconst moment = require('moment-timezone');\nconst cstTime = moment().tz('Asia\u002FShanghai');\n\nconst formats = {\n    'ISO 8601': cstTime.format(),\n    'Standard': cstTime.format('YYYY-MM-DD HH:mm:ss'),\n    'Chinese': cstTime.format('YYYY年MM月DD日 HH:mm:ss'),\n    'Time only': cstTime.format('HH:mm:ss'),\n    'Date only': cstTime.format('YYYY-MM-DD')\n};\n\nfor (const [name, formatted] of Object.entries(formats)) {\n    console.log(`${name}: ${formatted}`);\n}\n```\n\n## Best Practices\n\n### 1. Time Zone Handling\n\n**Recommendations:**\n\n- Always store times in UTC and convert to CST for display\n- Use IANA time zone IDs (e.g., Asia\u002FShanghai) instead of offsets\n- Handle daylight saving time properly (CST doesn't observe DST)\n- Test time zone conversions thoroughly\n- Document time zone assumptions in code\n\n### 2. Time Display\n\n**Recommendations:**\n\n- Display time in user's preferred format\n- Include time zone information when displaying CST\n- Use relative time (e.g., \"2 hours ago\") for recent events\n- Consider cultural preferences for time formatting\n- Provide options for 12-hour and 24-hour formats\n\n### 3. Time Storage\n\n**Recommendations:**\n\n- Store timestamps in UTC in databases\n- Include time zone information in data models\n- Use appropriate data types for timestamps (e.g., TIMESTAMP)\n- Consider time zone changes in historical data\n- Document time zone handling in data schemas\n\n### 4. Error Handling\n\n**Recommendations:**\n\n- Validate time inputs\n- Handle invalid time zone IDs gracefully\n- Provide clear error messages for time-related failures\n- Test edge cases (leap years, time zone transitions)\n- Log time-related errors for debugging\n\n## Common Use Cases\n\n### 1. Scheduling Tasks\n\n**Example: Schedule a task at specific CST time:**\n\n```python\nfrom datetime import datetime, timedelta\nimport pytz\n\n# Target CST time\ntarget_cst = datetime(2026, 2, 10, 22, 0, 0, tzinfo=pytz.timezone('Asia\u002FShanghai'))\n\n# Calculate time until task\nnow = datetime.now(pytz.timezone('Asia\u002FShanghai'))\ntime_until = target_cst - now\n\nprint(f\"Task scheduled for: {target_cst}\")\nprint(f\"Time until task: {time_until}\")\n```\n\n### 2. Logging with CST Time\n\n**Example: Log events with CST timestamps:**\n\n```python\nimport logging\nfrom datetime import datetime\nimport pytz\n\n# Configure logging with CST time\ncst_tz = pytz.timezone('Asia\u002FShanghai')\nlogging.basicConfig(\n    level=logging.INFO,\n    format='%(asctime)s - %(levelname)s - %(message)s',\n    datefmt='%Y-%m-%d %H:%M:%S'\n)\n\n# Log event\nlogging.info(\"Event occurred at CST time\")\n```\n\n### 3. Displaying CST Time in Web Applications\n\n**Example: Display current CST time on a webpage:**\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003Ctitle>CST Time Display\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003Cdiv id=\"cst-time\">Loading...\u003C\u002Fdiv>\n  \n    \u003Cscript>\n        function updateCSTTime() {\n            const options = {\n                timeZone: 'Asia\u002FShanghai',\n                hour12: false,\n                year: 'numeric',\n                month: '2-digit',\n                day: '2-digit',\n                hour: '2-digit',\n                minute: '2-digit',\n                second: '2-digit'\n            };\n            const cstTime = new Date().toLocaleString('zh-CN', options);\n            document.getElementById('cst-time').textContent = 'CST: ' + cstTime;\n        }\n    \n        \u002F\u002F Update every second\n        setInterval(updateCSTTime, 1000);\n        updateCSTTime();\n    \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### 4. Converting User Input to CST\n\n**Example: Convert user-provided time to CST:**\n\n```python\nfrom datetime import datetime\nimport pytz\nfrom dateutil import parser\n\n# User input time (could be any format)\nuser_input = \"2026-02-10 14:30:00\"\n\n# Parse user input\nuser_time = parser.parse(user_input)\n\n# Assume user time is in their local timezone\nuser_tz = pytz.timezone('America\u002FNew_York')\nuser_time = user_tz.localize(user_time)\n\n# Convert to CST\ncst_tz = pytz.timezone('Asia\u002FShanghai')\ncst_time = user_time.astimezone(cst_tz)\n\nprint(f\"User time: {user_time}\")\nprint(f\"CST time: {cst_time}\")\n```\n\n## Troubleshooting\n\n### Common Issues\n\n| Issue                  | Possible Cause                  | Solution                                 |\n| ---------------------- | ------------------------------- | ---------------------------------------- |\n| Wrong time displayed   | System time zone not set to CST | Change system time zone to Asia\u002FShanghai |\n| Time off by 1 hour     | Daylight saving time confusion  | Remember CST doesn't observe DST         |\n| Time conversion errors | Incorrect time zone ID          | Use Asia\u002FShanghai instead of CST         |\n| Time not updating      | Caching or stale data           | Clear cache and refresh                  |\n| Time display issues    | Format string errors            | Verify format string syntax              |\n\n### Debugging Tips\n\n1. **Verify system time zone:**\n\n   - Windows: Check Date & Time settings\n   - Linux: Check \u002Fetc\u002Ftimezone or timedatectl\n   - macOS: Check System Preferences > Date & Time\n2. **Test time zone conversions:**\n\n   - Use known reference times\n   - Verify conversions with multiple tools\n   - Check for daylight saving time issues\n3. **Monitor time-related logs:**\n\n   - Look for time zone warnings\n   - Check for conversion errors\n   - Verify timestamp consistency\n\n## Conclusion\n\nWorking 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:\n\n- Accurately obtain and display CST time\n- Convert between different time zones and CST\n- Integrate CST time handling in applications\n- Schedule tasks based on CST\n- Handle time-related operations correctly and consistently\n\nRemember 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.\n","# CST Time (China Standard Time)\n\n## Overview\n\nThis 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.\n\n## Purpose\n\nCST Time skill helps in:\n\n- Getting current CST time from local system\n- Converting between different time zones and CST\n- Integrating CST time handling in applications\n- Scheduling tasks based on CST\n- Displaying and formatting CST time correctly\n- Handling daylight saving time considerations (CST doesn't observe DST)\n\n## CST Time Zone Information\n\n**Time Zone Details:**\n\n- **Name**: China Standard Time (CST)\n- **UTC Offset**: UTC+8\n- **Daylight Saving Time**: Not observed\n- **Region**: Mainland China\n- **IANA Time Zone ID**: Asia\u002FShanghai\n\n**Important Notes:**\n\n- CST is 8 hours ahead of Coordinated Universal Time (UTC)\n- China does not observe daylight saving time\n- CST is used consistently year-round\n- Time zone ID for programming: Asia\u002FShanghai\n\n## Getting CST Time\n\n### 1. Using System Commands\n\n#### Windows (PowerShell)\n\n**Get current system time (assumed to be CST):**\n\n```powershell\nGet-Date\n```\n\n**Get CST time with explicit time zone:**\n\n```powershell\n[System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, \"China Standard Time\")\n```\n\n**Format CST time:**\n\n```powershell\nGet-Date -Format \"yyyy-MM-dd HH:mm:ss\"\n```\n\n#### Linux\u002FUnix (Bash)\n\n**Get current system time:**\n\n```bash\ndate\n```\n\n**Get CST time explicitly:**\n\n```bash\nTZ='Asia\u002FShanghai' date\n```\n\n**Format CST time:**\n\n```bash\ndate +\"%Y-%m-%d %H:%M:%S\"\n```\n\n#### macOS (Bash)\n\n**Get current system time:**\n\n```bash\ndate\n```\n\n**Get CST time explicitly:**\n\n```bash\nTZ='Asia\u002FShanghai' date\n```\n\n### 2. Using Programming Languages\n\n#### Python\n\n**Get current CST time:**\n\n```python\nfrom datetime import datetime\nimport pytz\n\n# Get current CST time\ncst_tz = pytz.timezone('Asia\u002FShanghai')\ncst_time = datetime.now(cst_tz)\n\nprint(f\"Current CST time: {cst_time}\")\nprint(f\"Formatted: {cst_time.strftime('%Y-%m-%d %H:%M:%S')}\")\n```\n\n**Convert UTC to CST:**\n\n```python\nfrom datetime import datetime\nimport pytz\n\n# Get UTC time\nutc_time = datetime.utcnow().replace(tzinfo=pytz.UTC)\n\n# Convert to CST\ncst_time = utc_time.astimezone(pytz.timezone('Asia\u002FShanghai'))\n\nprint(f\"UTC: {utc_time}\")\nprint(f\"CST: {cst_time}\")\n```\n\n**Convert any timezone to CST:**\n\n```python\nfrom datetime import datetime\nimport pytz\n\n# Example: Convert New York time to CST\nny_tz = pytz.timezone('America\u002FNew_York')\ncst_tz = pytz.timezone('Asia\u002FShanghai')\n\nny_time = datetime.now(ny_tz)\ncst_time = ny_time.astimezone(cst_tz)\n\nprint(f\"New York: {ny_time}\")\nprint(f\"CST: {cst_time}\")\n```\n\n#### JavaScript\u002FNode.js\n\n**Get current CST time:**\n\n```javascript\n\u002F\u002F Using Intl API\nconst cstTime = new Date().toLocaleString('zh-CN', {\n    timeZone: 'Asia\u002FShanghai',\n    hour12: false\n});\nconsole.log('Current CST time:', cstTime);\n\n\u002F\u002F Using moment-timezone (recommended)\nconst moment = require('moment-timezone');\nconst cstTime = moment().tz('Asia\u002FShanghai').format('YYYY-MM-DD HH:mm:ss');\nconsole.log('Current CST time:', cstTime);\n```\n\n**Convert UTC to CST:**\n\n```javascript\nconst moment = require('moment-timezone');\nconst utcTime = moment().utc();\nconst cstTime = utcTime.tz('Asia\u002FShanghai').format('YYYY-MM-DD HH:mm:ss');\nconsole.log('UTC:', utcTime.format());\nconsole.log('CST:', cstTime);\n```\n\n#### Java\n\n**Get current CST time:**\n\n```java\nimport java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeFormatter;\n\n\u002F\u002F Get current CST time\nZonedDateTime cstTime = ZonedDateTime.now(ZoneId.of(\"Asia\u002FShanghai\"));\nDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\nSystem.out.println(\"Current CST time: \" + cstTime.format(formatter));\n```\n\n**Convert UTC to CST:**\n\n```java\nimport java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.Instant;\n\n\u002F\u002F Get UTC time and convert to CST\nInstant utcTime = Instant.now();\nZonedDateTime cstTime = utcTime.atZone(ZoneId.of(\"Asia\u002FShanghai\"));\n\nSystem.out.println(\"UTC: \" + utcTime);\nSystem.out.println(\"CST: \" + cstTime);\n```\n\n#### Go\n\n**Get current CST time:**\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"time\"\n)\n\nfunc main() {\n    \u002F\u002F Get current CST time\n    cstTime := time.Now().In(time.FixedZone(\"CST\", int(8*3600)))\n    fmt.Println(\"Current CST time:\", cstTime.Format(\"2006-01-02 15:04:05\"))\n}\n```\n\n#### C#\n\n**Get current CST time:**\n\n```csharp\nusing System;\n\n\u002F\u002F Get current CST time\nTimeZoneInfo cstZone = TimeZoneInfo.FindSystemTimeZoneById(\"China Standard Time\");\nDateTime cstTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, cstZone);\n\nConsole.WriteLine($\"Current CST time: {cstTime:yyyy-MM-dd HH:mm:ss}\");\n```\n\n### 3. Using Online APIs\n\n**World Time API:**\n\n```bash\ncurl \"http:\u002F\u002Fworldtimeapi.org\u002Fapi\u002Ftimezone\u002FAsia\u002FShanghai\"\n```\n\n**TimezoneDB API:**\n\n```bash\ncurl \"http:\u002F\u002Fapi.timezonedb.com\u002Fv1\u002Fget-time-zone?key=YOUR_API_KEY&by=zone&zone=Asia\u002FShanghai\"\n```\n\n**Google Maps Time Zone API:**\n\n```bash\ncurl \"https:\u002F\u002Fmaps.googleapis.com\u002Fmaps\u002Fapi\u002Ftimezone\u002Fjson?location=39.9042,116.4074&timestamp=1331161200&key=YOUR_API_KEY\"\n```\n\n## Time Zone Conversions\n\n### 1. UTC to CST\n\n**Formula:**\n\n```\nCST = UTC + 8 hours\n```\n\n**Python Example:**\n\n```python\nfrom datetime import datetime, timedelta\n\n# UTC to CST\nutc_time = datetime.utcnow()\ncst_time = utc_time + timedelta(hours=8)\n\nprint(f\"UTC: {utc_time}\")\nprint(f\"CST: {cst_time}\")\n```\n\n### 2. CST to UTC\n\n**Formula:**\n\n```\nUTC = CST - 8 hours\n```\n\n**Python Example:**\n\n```python\nfrom datetime import datetime, timedelta\n\n# CST to UTC\ncst_time = datetime.now()\nutc_time = cst_time - timedelta(hours=8)\n\nprint(f\"CST: {cst_time}\")\nprint(f\"UTC: {utc_time}\")\n```\n\n### 3. Other Time Zones to CST\n\n**Common conversions:**\n\n| Time Zone        | UTC Offset | CST Offset | Conversion     |\n| ---------------- | ---------- | ---------- | -------------- |\n| EST (Eastern)    | UTC-5      | +13 hours  | EST + 13 = CST |\n| PST (Pacific)    | UTC-8      | +16 hours  | PST + 16 = CST |\n| GMT (Greenwich)  | UTC+0      | +8 hours   | GMT + 8 = CST  |\n| JST (Japan)      | UTC+9      | -1 hour    | JST - 1 = CST  |\n| AEST (Australia) | UTC+10     | -2 hours   | AEST - 2 = CST |\n\n## Formatting CST Time\n\n### Common Format Patterns\n\n**ISO 8601 Format:**\n\n```\n2026-02-10T21:30:45+08:00\n```\n\n**Standard Format:**\n\n```\n2026-02-10 21:30:45\n```\n\n**Chinese Format:**\n\n```\n2026年2月10日 21:30:45\n```\n\n**Time Only:**\n\n```\n21:30:45\n```\n\n**Date Only:**\n\n```\n2026-02-10\n```\n\n### Programming Language Formatting\n\n**Python:**\n\n```python\nfrom datetime import datetime\n\ncst_time = datetime.now()\nformats = {\n    'ISO 8601': cst_time.isoformat(),\n    'Standard': cst_time.strftime('%Y-%m-%d %H:%M:%S'),\n    'Chinese': cst_time.strftime('%Y年%m月%d日 %H:%M:%S'),\n    'Time only': cst_time.strftime('%H:%M:%S'),\n    'Date only': cst_time.strftime('%Y-%m-%d')\n}\n\nfor name, formatted in formats.items():\n    print(f\"{name}: {formatted}\")\n```\n\n**JavaScript:**\n\n```javascript\nconst moment = require('moment-timezone');\nconst cstTime = moment().tz('Asia\u002FShanghai');\n\nconst formats = {\n    'ISO 8601': cstTime.format(),\n    'Standard': cstTime.format('YYYY-MM-DD HH:mm:ss'),\n    'Chinese': cstTime.format('YYYY年MM月DD日 HH:mm:ss'),\n    'Time only': cstTime.format('HH:mm:ss'),\n    'Date only': cstTime.format('YYYY-MM-DD')\n};\n\nfor (const [name, formatted] of Object.entries(formats)) {\n    console.log(`${name}: ${formatted}`);\n}\n```\n\n## Best Practices\n\n### 1. Time Zone Handling\n\n**Recommendations:**\n\n- Always store times in UTC and convert to CST for display\n- Use IANA time zone IDs (e.g., Asia\u002FShanghai) instead of offsets\n- Handle daylight saving time properly (CST doesn't observe DST)\n- Test time zone conversions thoroughly\n- Document time zone assumptions in code\n\n### 2. Time Display\n\n**Recommendations:**\n\n- Display time in user's preferred format\n- Include time zone information when displaying CST\n- Use relative time (e.g., \"2 hours ago\") for recent events\n- Consider cultural preferences for time formatting\n- Provide options for 12-hour and 24-hour formats\n\n### 3. Time Storage\n\n**Recommendations:**\n\n- Store timestamps in UTC in databases\n- Include time zone information in data models\n- Use appropriate data types for timestamps (e.g., TIMESTAMP)\n- Consider time zone changes in historical data\n- Document time zone handling in data schemas\n\n### 4. Error Handling\n\n**Recommendations:**\n\n- Validate time inputs\n- Handle invalid time zone IDs gracefully\n- Provide clear error messages for time-related failures\n- Test edge cases (leap years, time zone transitions)\n- Log time-related errors for debugging\n\n## Common Use Cases\n\n### 1. Scheduling Tasks\n\n**Example: Schedule a task at specific CST time:**\n\n```python\nfrom datetime import datetime, timedelta\nimport pytz\n\n# Target CST time\ntarget_cst = datetime(2026, 2, 10, 22, 0, 0, tzinfo=pytz.timezone('Asia\u002FShanghai'))\n\n# Calculate time until task\nnow = datetime.now(pytz.timezone('Asia\u002FShanghai'))\ntime_until = target_cst - now\n\nprint(f\"Task scheduled for: {target_cst}\")\nprint(f\"Time until task: {time_until}\")\n```\n\n### 2. Logging with CST Time\n\n**Example: Log events with CST timestamps:**\n\n```python\nimport logging\nfrom datetime import datetime\nimport pytz\n\n# Configure logging with CST time\ncst_tz = pytz.timezone('Asia\u002FShanghai')\nlogging.basicConfig(\n    level=logging.INFO,\n    format='%(asctime)s - %(levelname)s - %(message)s',\n    datefmt='%Y-%m-%d %H:%M:%S'\n)\n\n# Log event\nlogging.info(\"Event occurred at CST time\")\n```\n\n### 3. Displaying CST Time in Web Applications\n\n**Example: Display current CST time on a webpage:**\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003Ctitle>CST Time Display\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003Cdiv id=\"cst-time\">Loading...\u003C\u002Fdiv>\n  \n    \u003Cscript>\n        function updateCSTTime() {\n            const options = {\n                timeZone: 'Asia\u002FShanghai',\n                hour12: false,\n                year: 'numeric',\n                month: '2-digit',\n                day: '2-digit',\n                hour: '2-digit',\n                minute: '2-digit',\n                second: '2-digit'\n            };\n            const cstTime = new Date().toLocaleString('zh-CN', options);\n            document.getElementById('cst-time').textContent = 'CST: ' + cstTime;\n        }\n    \n        \u002F\u002F Update every second\n        setInterval(updateCSTTime, 1000);\n        updateCSTTime();\n    \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### 4. Converting User Input to CST\n\n**Example: Convert user-provided time to CST:**\n\n```python\nfrom datetime import datetime\nimport pytz\nfrom dateutil import parser\n\n# User input time (could be any format)\nuser_input = \"2026-02-10 14:30:00\"\n\n# Parse user input\nuser_time = parser.parse(user_input)\n\n# Assume user time is in their local timezone\nuser_tz = pytz.timezone('America\u002FNew_York')\nuser_time = user_tz.localize(user_time)\n\n# Convert to CST\ncst_tz = pytz.timezone('Asia\u002FShanghai')\ncst_time = user_time.astimezone(cst_tz)\n\nprint(f\"User time: {user_time}\")\nprint(f\"CST time: {cst_time}\")\n```\n\n## Troubleshooting\n\n### Common Issues\n\n| Issue                  | Possible Cause                  | Solution                                 |\n| ---------------------- | ------------------------------- | ---------------------------------------- |\n| Wrong time displayed   | System time zone not set to CST | Change system time zone to Asia\u002FShanghai |\n| Time off by 1 hour     | Daylight saving time confusion  | Remember CST doesn't observe DST         |\n| Time conversion errors | Incorrect time zone ID          | Use Asia\u002FShanghai instead of CST         |\n| Time not updating      | Caching or stale data           | Clear cache and refresh                  |\n| Time display issues    | Format string errors            | Verify format string syntax              |\n\n### Debugging Tips\n\n1. **Verify system time zone:**\n\n   - Windows: Check Date & Time settings\n   - Linux: Check \u002Fetc\u002Ftimezone or timedatectl\n   - macOS: Check System Preferences > Date & Time\n2. **Test time zone conversions:**\n\n   - Use known reference times\n   - Verify conversions with multiple tools\n   - Check for daylight saving time issues\n3. **Monitor time-related logs:**\n\n   - Look for time zone warnings\n   - Check for conversion errors\n   - Verify timestamp consistency\n\n## Conclusion\n\nWorking 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:\n\n- Accurately obtain and display CST time\n- Convert between different time zones and CST\n- Integrate CST time handling in applications\n- Schedule tasks based on CST\n- Handle time-related operations correctly and consistently\n\nRemember 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.\n",{"name":5,"description":7},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fxuanpass\u002Fcst-time",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill cst-time",{"tool":39,"command":40},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill cst-time",{"tool":42,"command":43},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill cst-time","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxuanpass\u002Fcst-time\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]