From 24b5705db775050b9e200f1d5a6a12777f03c25e Mon Sep 17 00:00:00 2001 From: Peleus <245629560@qq.com> Date: Fri, 16 Feb 2024 14:27:36 +0800 Subject: [PATCH] Update README.md --- calendar/julian/README.cn.md | 19 ++----------------- calendar/julian/README.jp.md | 20 +++----------------- calendar/julian/README.md | 25 ++++--------------------- calendar/lunar/README.cn.md | 18 ++---------------- calendar/lunar/README.jp.md | 18 ++---------------- calendar/lunar/README.md | 21 ++------------------- calendar/persian/README.cn.md | 18 ++---------------- calendar/persian/README.jp.md | 18 ++---------------- calendar/persian/README.md | 21 ++------------------- 9 files changed, 21 insertions(+), 157 deletions(-) diff --git a/calendar/julian/README.cn.md b/calendar/julian/README.cn.md index 77e9c3b9..412de541 100644 --- a/calendar/julian/README.cn.md +++ b/calendar/julian/README.cn.md @@ -1,23 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# 儒略日/简化儒略日 简体中文 | [English](README.md) | [日本語](README.jp.md) -一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 [awesome-go-cn](https://github.com/yinggaozhen/awesome-go-cn#日期和时间 "awesome-go-cn") 收录 - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### 儒略日/简化儒略日 - +#### 用法示例 ##### 将 `公历` 转换成 `儒略日` ```go // 默认保留 6 位小数精度 diff --git a/calendar/julian/README.jp.md b/calendar/julian/README.jp.md index 48e22039..0d312911 100644 --- a/calendar/julian/README.jp.md +++ b/calendar/julian/README.jp.md @@ -1,22 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# 儒略の日/簡略儒略の日 日本語 | [English](README.md) | [简体中文](README.cn.md) -一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 [awesome-go-cn](https://github.com/yinggaozhen/awesome-go-cn#日期和时间 "awesome-go-cn") 收录 - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### 儒略の日/簡略儒略の日 +#### 使い方の例 ##### `西暦` を `儒略日` に変換する ```go @@ -68,7 +54,7 @@ carbon.CreateFromJulian(60333.551563).Julian().JD(4) // 2460333.0516 carbon.CreateFromJulian(2460334).ToDateTimeString() // 2024-01-24 12:00:00 carbon.CreateFromJulian(2460334.051563).ToDateTimeString() // 2024-01-24 13:14:15 -// 簡略儒略日` を 公历 に変換する +// 簡略儒略日 を 公历 に変換する carbon.CreateFromJulian(60333.5).ToDateTimeString() // 2024-01-24 12:00:00 carbon.CreateFromJulian(60333.551563).ToDateTimeString() // 2024-01-24 13:14:15 ``` \ No newline at end of file diff --git a/calendar/julian/README.md b/calendar/julian/README.md index 12f558ba..98584c2a 100644 --- a/calendar/julian/README.md +++ b/calendar/julian/README.md @@ -1,25 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# Julian Day/Modified Julian Day English | [简体中文](README.cn.md) | [日本語](README.jp.md) -#### Introduction - -A simple, semantic and developer-friendly golang package for time, has been included -by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go") - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### Julian Day/Modified Julian Day +#### Usage and example ##### Convert `Gregorian` calendar to `Julian Day` ```go @@ -67,11 +50,11 @@ carbon.CreateFromJulian(60333.551563).Julian().JD(4) // 2460333.0516 ##### Convert `Julian Day`/`Modified Julian Day` to `Gregorian` calendar ```go -// Convert Julian Day to Gregorian calendar` +// Convert Julian Day to Gregorian calendar carbon.CreateFromJulian(2460334).ToDateTimeString() // 2024-01-24 12:00:00 carbon.CreateFromJulian(2460334.051563).ToDateTimeString() // 2024-01-24 13:14:15 -// Convert Modified Julian Day to Gregorian calendar` +// Convert Modified Julian Day to Gregorian calendar carbon.CreateFromJulian(60333.5).ToDateTimeString() // 2024-01-24 12:00:00 carbon.CreateFromJulian(60333.551563).ToDateTimeString() // 2024-01-24 13:14:15 ``` \ No newline at end of file diff --git a/calendar/lunar/README.cn.md b/calendar/lunar/README.cn.md index a250a190..33d49270 100644 --- a/calendar/lunar/README.cn.md +++ b/calendar/lunar/README.cn.md @@ -1,22 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# 中国农历 简体中文 | [English](README.md) | [日本語](README.jp.md) -一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 [awesome-go-cn](https://github.com/yinggaozhen/awesome-go-cn#日期和时间 "awesome-go-cn") 收录 - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### 中国农历 +#### 用法示例 > 目前仅支持公元 `1900` 年至 `2100` 年的 `200` 年时间跨度 diff --git a/calendar/lunar/README.jp.md b/calendar/lunar/README.jp.md index 9be361c6..37dca326 100644 --- a/calendar/lunar/README.jp.md +++ b/calendar/lunar/README.jp.md @@ -1,22 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# 中国の旧暦 日本語 | [English](README.md) | [简体中文](README.cn.md) -一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 [awesome-go-cn](https://github.com/yinggaozhen/awesome-go-cn#日期和时间 "awesome-go-cn") 收录 - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### 中国の旧暦 +#### 使い方の例 > 現在は西暦` 1900 `年から` 2100 `年までの` 200 `年の時間スパンのみをサポートしている diff --git a/calendar/lunar/README.md b/calendar/lunar/README.md index 6fefec26..4d06122a 100644 --- a/calendar/lunar/README.md +++ b/calendar/lunar/README.md @@ -1,25 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# Chinese Lunar English | [简体中文](README.cn.md) | [日本語](README.jp.md) -#### Introduction - -A simple, semantic and developer-friendly golang package for time, has been included -by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go") - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### Chinese Lunar +#### Usage and example > Currently only `200` years from `1900` to `2100` are supported diff --git a/calendar/persian/README.cn.md b/calendar/persian/README.cn.md index db7e4d4b..5a8f9df8 100644 --- a/calendar/persian/README.cn.md +++ b/calendar/persian/README.cn.md @@ -1,22 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# 波斯历(伊朗历) 简体中文 | [English](README.md) | [日本語](README.jp.md) -一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 [awesome-go-cn](https://github.com/yinggaozhen/awesome-go-cn#日期和时间 "awesome-go-cn") 收录 - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### 波斯历(伊朗历) +#### 用法示例 ##### 将 `公历` 转换成 `波斯历` diff --git a/calendar/persian/README.jp.md b/calendar/persian/README.jp.md index 4820fff7..337fb95e 100644 --- a/calendar/persian/README.jp.md +++ b/calendar/persian/README.jp.md @@ -1,22 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# ペルシア暦(イラン暦) 日本語 | [English](README.md) | [简体中文](README.cn.md) -一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 [awesome-go-cn](https://github.com/yinggaozhen/awesome-go-cn#日期和时间 "awesome-go-cn") 收录 - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### ペルシア暦(イラン暦) +#### 使い方の例 ##### `西暦` を `ペルシャ暦` に変換 diff --git a/calendar/persian/README.md b/calendar/persian/README.md index 9c6ee8ee..c44dc452 100644 --- a/calendar/persian/README.md +++ b/calendar/persian/README.md @@ -1,25 +1,8 @@ -# Carbon - -[![Carbon Release](https://img.shields.io/github/release/golang-module/carbon.svg)](https://github.com/golang-module/carbon/releases) -[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/golang-module/carbon/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/golang-module/carbon/v2) -[![Go Coverage](https://codecov.io/gh/golang-module/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/golang-module/carbon) -[![Goproxy.cn](https://goproxy.cn/stats/github.com/golang-module/carbon/badges/download-count.svg)](https://goproxy.cn) -[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/golang-module/carbon/v2) -[![License](https://img.shields.io/github/license/golang-module/carbon)](https://github.com/golang-module/carbon/blob/master/LICENSE) +# Persian(Jalaali) Calendar English | [简体中文](README.cn.md) | [日本語](README.jp.md) -#### Introduction - -A simple, semantic and developer-friendly golang package for time, has been included -by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go") - -[github.com/golang-module/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon") - -[gitee.com/golang-module/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon") - -#### Persian(Jalaali) Calendar +#### Usage and example ##### Convert `Gregorian` calendar to `Persian` calendar