mktime

mktime

[code=golang]
import (
    "time"
)

func mktime(hour, min, sec, month, day, year int) int64 {
    t := time.Date(year, time.Month(month), day, hour, min, sec, 0, time.Local)

    return t.Unix()
}
[/code]