carbon 是一个轻量级、语义化、对开发者友好的 golang 时间处理库,提供了对时间穿越、时间差值、时间极值、时间判断、星座、星座、农历、儒略日 / 简化儒略日、波斯历 / 伊朗历的支持。
carbon 目前已捐赠给 dromara 开源组织,已被 awesome-go 收录,并获得gitee 2024 年最有价值项目(GVP)和 gitcode 2024 年度 G-Star 项目,如果您觉得不错,请给个 star 吧
gitee: gitee.com/dromara/carbon
gitcode: gitcode.com/dromara/carbon
日语翻译文件从 jp.json 改成 ja.json,说明文档从 README.jp.md 更名为 README.ja.md,以符合 ISO639-1 标准ParseWithLayouts 方法,用 ParseByLayouts 方法替代ParseWithFormats 方法,用 ParseByFormats 方法替代CleanTestNow 方法,用 ClearTestNow 方法替代ParseByLayout 和 ParseByFormat 方法对时间戳字符串的解析支持,解析时间戳请使用 CreateFromTimestamp, CreateFromTimestampMilli, CreateFromTimestampMicro, CreateFromTimestampNano 方法helper.go 里 getAbsValue 方法,用位操作替换条件判断frozen.go 文件里时间冻结相关方法,用原子操作减少锁竞争,优化内存分配串行测试、并行测试和并发测试README.ko.mdSleep 方法及相关单元测试、基准测试和示例文件MaxYear, MinYear, MaxMonth, MinMonth, MaxDay, MinDay 等,并使用这些常量替换硬编码Japanese translation file from jp.json to ja.json and rename document from README.jp.md to README.ja.md to comply with the ISO639-1 standardParseWithLayouts method and replace with ParseByLayouts methodParseWithFormats method and replace with ParseByFormats methodCleanTestNow method and replace with ClearTestNow methodParseByLayout and ParseByFormat methods, useCreateFromTimestamp, CreateFromTimestampMilli, CreateFromTimestampMicro, CreateFromTimestampNano to parse timestamp stringsgetAbsValue method in helper.go to replace conditional judgments with bitwise operationfrozen.go, reduce lock contention using atomic operation and optimize memory allocationserial testing, parallel testing and concurrent testingREADME.ko.mdSleep method and related unit tests, benchmark tests, and example fileMaxYear, MinYear, MaxMonth, MinMonth, MaxDay, MinDay etc. and replace hard coded with these constants原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。