Get Second Offset within Minute in Go

Posted by yhuang
Public (Editable by Users)

Second returns the second offset within the minute specified by t, in the range [0, 59].

Go
Edit
package main

import (
	"fmt"
	"time"
)

func main() {

	now := time.Now()
	fmt.Println(now.Second())
}