Answers for "golang get unix timestamp"

Go
2

go packae unix time

package main

import (
	"fmt"
	"time"
)

func unixtime() {
	fmt.Println(time.Now().Unix())
}
Posted by: Guest on July-05-2020
0

timestamp to time golang

timeUnix 1257894000
time.Time: 2009-11-10 23:00:00 +0000 UTC
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language