func main() {
now := time.Now()
fmt.Println(now)
// Output: 2025-07-21 13:49:01.421328801 +0300 MSK m=+0.000019420
year := now.Year()
fmt.Println(year)
// Output: 2025
time.Sleep(10 * time.Second)
fmt.Println(now)
// Output: 2025-07-21 13:49:01.421328801 +0300 MSK m=+0.000019420
}
// A Time represents an instant in time with nanosecond precision.
//
// Programs using times should typically store and pass them as values,
// not pointers. That is, time variables and struct fields should be of
// type [time.Time], not *time.Time.