title: Something like python timedelta in golang
body: <p>I want to get a datetime, counting weeks from a date, days from a week and seconds from 00:00 time.</p>
  
  <p>With Python I can use this:</p>
  
  <pre><code>BASE_TIME = datetime.datetime(1980,1,6,0,0)
  tdelta = datetime.timedelta(weeks = 1722,
                              days = 1,
                              seconds = 66355)
  mydate = BASE_DATE + tdelta
  </code></pre>
  
  <p>I'm trying to get it with Go, but I have some problems to reach it:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "time"
  )
  
  var base = time.Date(1980, 1, 6, 0, 0, 0, 0, time.UTC)
  
  func main() {
      weeks := 1722
      days := 1
      seconds := 66355
      weeksToSecs := 7 * 24 * 60 * 60
      daysToSecs := 24 * 60 * 60
      totalSecs := (weeks * weeksToSecs) + (days * daysToSecs) + seconds
      nanosecs := int64(totalSecs) * 1000000000
  
      //delta := time.Date(0, 0, 0, 0, 0, totalSecs, 0, time.UTC)
  
      date := base.Add(nanosecs)
  
      fmt.Printf("Result: %s", date)
  
  }
  </code></pre>
  
  <p>prog.go:21: cannot use nanosecs (type int64) as type time.Duration in function argument</p>
  
  <p><a href="http://play.golang.org/p/XWSK_QaXrQ" rel="noreferrer">http://play.golang.org/p/XWSK_QaXrQ</a></p>
  
  <p>What I'm missing?<br>Thanks</p>