.NET 时区处理
原名:dotnet-timezone
为 .NET 应用设计正确的 UTC 存储、时区转换、夏令时和 RFC 3339 输出。
中文 Skills 技能说明
适合任务时间、日志、令牌和跨地区业务。先确认字段语义与历史数据,再统一服务端和前端转换;迁移生产时间数据前必须备份并验证边界日期。
上游能力依据
上游原始适用说明:.NET timezone handling guidance for C# applications. Use when working with TimeZoneInfo, DateTimeOffset, NodaTime, UTC conversion, daylight saving time, scheduling across timezones, cross-platform Windows/IANA timezone IDs, or when a .NET user needs the timezone for a city, address, region, or country and copy-paste-ready C# code.
上游 SKILL.md 主要章节(保留原文标题):
- Start With The Right Path
- Resolve Addresses And Locations
- Look Up Timezone IDs
- Generate Code
- Warn About Common Pitfalls
- Response Shape
- References
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/dotnet-timezone
适用范围
平台:linux、macos、windows;标签:软件开发、.NET 时区处理
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。