Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Feb 19, 2024
1 parent c47bf87 commit ee21dd8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ go-datebin some using example, more see [docs](https://pkg.go.dev/github.com/dea
### Index

- [Import](#Import)
- [Get Errors](#Get Errors)
- [Data get and set](#Data get and set)
- [Today more](#Today more)
- [Get Errors](#GetErrors)
- [Data get and set](#GetAndSetData)
- [Today more](#TodayAndMore)
- [Input](#Input)
- [Parse](#Parse)
- [Output](#Output)
- [Helper](#Helper)
- [Compare](#Compare)
- [Get Time](#Get Time)
- [Diff Time](#Diff Time)
- [Add Or Sub](#Add Or Sub)
- [Get Time](#GetTime)
- [Diff Time](#DiffTime)
- [Add Or Sub](#AddOrSub)
- [Is](#Is)
- [IsMonth](#IsMonth)
- [IsStar](#IsStar)
- [IsWeek](#IsWeek)
- [IsEq](#IsEq)
- [Setting](#Setting)
- [Get Between](#Get Between)
- [Get Between](#GetBetween)
- [Datetimes](#Datetimes)
- [Format type](#Format type)
- [Format Sign](#FormatSign)


#### Import
Expand All @@ -41,7 +41,7 @@ import (
~~~


#### Get Errors
#### GetErrors

~~~go
// type 1
Expand All @@ -68,7 +68,7 @@ if err != nil {
~~~


#### Data get and set
#### GetAndSetData

~~~go
// set Time
Expand Down Expand Up @@ -100,7 +100,7 @@ datebin.Error() error
~~~


#### Today more
#### TodayAndMore

some const example
~~~go
Expand Down Expand Up @@ -331,7 +331,7 @@ res := timeA.Truncate(d time.Duration)
~~~


#### Get Time
#### GetTime

get time data.

Expand Down Expand Up @@ -429,7 +429,7 @@ res := time.WeekOfYear()
~~~


#### Diff Time
#### DiffTime

get diff data from two times

Expand Down Expand Up @@ -472,7 +472,7 @@ data := timeA.Diff(timeB).Format("{WW} week {DD} Day {HH} Hour {ii} Minute {ss}
~~~


#### Add Or Sub
#### AddOrSub

some `Add` or `Sub` functions

Expand Down Expand Up @@ -903,7 +903,7 @@ date := res.ToDatetimeString()
~~~


#### Get Between
#### GetBetween

get Between time data

Expand Down Expand Up @@ -988,7 +988,7 @@ var res bool = d1.Lte(d2)
~~~


#### Format type
#### FormatSign

| sign | desc | length | range | example |
| :------------: | :------------: | :------------: | :------------: | :------------: |
Expand Down

0 comments on commit ee21dd8

Please sign in to comment.