golang time add code example
Example 1: go packae unix time
package main
import (
"fmt"
"time"
)
func unixtime() {
fmt.Println(time.Now().Unix())
}
Example 2: golang time.Add with variables
timein := time.Now().Local().Add(time.Hour * time.Duration(Hours) +
time.Minute * time.Duration(Mins) +
time.Second * time.Duration(Sec))