Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
kakuilan committed Mar 6, 2024
1 parent d29f3f0 commit cedfb74
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http://192.168.1.1:6060/pkg/github.com/kakuilan

```sh
go get -d github.com/robertkrimen/godocdown/godocdown
godocdown . > docs/v0.4.6.md
godocdown . > docs/v0.4.7.md
```

### 安装依赖
Expand Down
20 changes: 20 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

All notable changes to this project will be documented in this file.

## [v0.4.7]- 2024-03-06

#### Added

- none

#### Fixed

- none

#### Changed

- 修改`KTime.Str2Timestruct`,将`format`参数改为`option`,以支持UTC和本地时区
- 修改`KTime.Str2Timestamp`,将`format`参数改为`option`,以支持UTC和本地时区
- 修改`KTime.IsDate2time`,增加参数`option`,以支持UTC和本地时区

#### Removed

- none

## [v0.4.6]- 2023-10-21

#### Added
Expand Down
6 changes: 3 additions & 3 deletions docs/v0.4.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,7 @@ Unsetenv 删除一个环境变量.
#### func (*LkkOS) Uptime
```go
func (ko *LkkOS) Uptime() (uint64, error)
func (ko *LkkOS) Uptime() (res uint64, err error)
```
Uptime 获取系统运行时间,秒.
Expand Down Expand Up @@ -3828,8 +3828,8 @@ Hour 获取小时.
```go
func (kt *LkkTime) IsDate2time(str string, option ...TimeOption) (bool, int64)
```
IsDate2time 检查字符串是否日期格式,并转换为时间戳.注意,时间戳可能为负数(小于1970年时). option 为时间选项TimeOption.
匹配如:
IsDate2time 检查字符串是否日期格式,并转换为时间戳.注意,时间戳可能为负数(小于1970年时). option
为时间选项TimeOption,默认为本地时区. 匹配如:
0000
0000-00
Expand Down
2 changes: 1 addition & 1 deletion kgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type (

const (
// Version 版本号
Version = "0.4.6"
Version = "0.4.7"

// KDelimiter 本库自定义分隔符
KDelimiter = "$@#KSYSK#@$"
Expand Down
2 changes: 1 addition & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (kt *LkkTime) DaysBetween(fromDate, toDate time.Time) int {
}

// IsDate2time 检查字符串是否日期格式,并转换为时间戳.注意,时间戳可能为负数(小于1970年时).
// option 为时间选项TimeOption.
// option 为时间选项TimeOption,默认为本地时区.
// 匹配如:
//
// 0000
Expand Down

0 comments on commit cedfb74

Please sign in to comment.