Closed rew1nter closed 5 months ago
Carbon here is not even formatting. Aren't these supposed to print out the same results?
package main import ( "fmt" "time" "github.com/golang-module/carbon/v2" ) func main() { blinkf := "2006-01-02T15:04:05.000Z07:00" fmt.Println(carbon.Now().Format(blinkf)) // 2006-01-02+0615:04:05.000171894041852461633907:00 fmt.Println(time.Now().Format(blinkf)) // 2024-06-21T09:26:58.524+06:00 }
Usage error, the correct one should be as follows
fmt.Println(carbon.Now().Layout(blinkf))
fmt.Println(carbon.Now().Format("Y-m-d H:i:s"))
Got it. Thanks
Carbon here is not even formatting. Aren't these supposed to print out the same results?