-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
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
"2023-11-08T09:52:48" not support? #202
Labels
Question
Indicates that an issue, pull request, or discussion needs more information
Comments
zsq1234
added
the
Question
Indicates that an issue, pull request, or discussion needs more information
label
Nov 23, 2023
The next version will be added. Currently, you can use carbon.ParseByLayout("2023-11-08T09:52:48", "2006-01-02T15:04:05") |
In addition, you can replace carbon.Parse(v.(string)).ToStdTime().UnixMilli() with carbon.Parse(v.(string)).TimestampMilli() |
carbon.ParseByLayout("2023-11-18T03:55:27.000+0000", "2006-01-02T15:04:05.999-0700").TimestampMilli() // 1700279727000 |
Thank you, this solved my problem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use:carbon.Parse(v).ToStdTime().UnixMilli()
v is "2023-11-08T09:52:48"
but get value 18446681938112751616
i find the
layouts
not contain this format, why or can support it?very thank youThe text was updated successfully, but these errors were encountered: