Get Minute Offset within Hour in Go

Posted by yhuang
Public (Editable by Users)

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

Go
Edit
package main

import (
	"fmt"
	"time"
)

func main() {

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