working
This commit is contained in:
11
timestamp.go
Normal file
11
timestamp.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
t, _ := time.Parse("2006-01-02 15:04:05", "2023-07-24 10:06:33")
|
||||
fmt.Println(t.Unix())
|
||||
}
|
||||
Reference in New Issue
Block a user