Standard library / time
time.Time.Minute()
Return minute in the associated location, from 0 to 59. Expected stdout: '34\n'.
Formal Syntax & Structure
go syntaxgo
func (t Time) Minute() intReturn Value
int
Return minute in the associated location, from 0 to 59.
Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func fixed() time.Time { return time.Date(2024, 2, 29, 12, 34, 56, 123000000, time.UTC) }func main() { fmt.Println(fixed().Minute()) }