We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码: `package main
import ( "fmt" "github.com/golang-module/carbon" )
func main() { fmt.Println(carbon.ParseByFormat("It is 2020-08-05 13:14:15", "It is Y-m-d H:i:s").ToDateString()) fmt.Println(carbon.ParseByLayout("2020|08|05 13|14|15", "2006|01|02 15:04:05").ToDateTimeString()) }` 无任何输出
The text was updated successfully, but these errors were encountered:
fmt.Println(carbon.ParseByLayout("2020|08|05 13|14|15", "2006|01|02 15:04:05").ToDateTimeString())值和模板不对应,应该是fmt.Println(carbon.ParseByLayout("2020|08|05 13|14|15", "2006|01|02 15|04|05").ToDateTimeString())
Sorry, something went wrong.
mt.Println(carbon.ParseByFormat("It is 2020-08-05 13:14:15", "It is Y-m-d H:i:s").ToDateString())这个确实有点问题,is这两个是特殊字符被解析了,这个bug正在修复,感谢指正。
No branches or pull requests
代码:
`package main
import (
"fmt"
"github.com/golang-module/carbon"
)
func main() {
fmt.Println(carbon.ParseByFormat("It is 2020-08-05 13:14:15", "It is Y-m-d H:i:s").ToDateString())
fmt.Println(carbon.ParseByLayout("2020|08|05 13|14|15", "2006|01|02 15:04:05").ToDateTimeString())
}`
无任何输出
The text was updated successfully, but these errors were encountered: