https://github.com/afeiship/go-strftime
Simple date format for golang.
https://github.com/afeiship/go-strftime
datetime format golang now strftime
Last synced: 9 days ago
JSON representation
Simple date format for golang.
- Host: GitHub
- URL: https://github.com/afeiship/go-strftime
- Owner: afeiship
- Created: 2024-11-04T02:19:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T03:21:08.000Z (about 1 year ago)
- Last Synced: 2025-05-22T22:09:50.008Z (8 months ago)
- Topics: datetime, format, golang, now, strftime
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-strftime
> Simple date format for golang.
## installation
```shell
go get -u github.com/afeiship/go-strftime
```
## usage
```shell
improt "github.com/afeiship/go-strftime"
fmt.Println(strftime.Format("datetime")) // 2021-08-01 10:10:10
fmt.Println(strftime.Format("date")) // 2021-08-01
fmt.Println(strftime.Format("time")) // 10:10:10
fmt.Println(strftime.Format("unix")) // 1627832610
```