title: Convert to time in Golang from milliseconds
body: <p>I have a some json data where there is a field called <strong>lastModifed</strong> contains time in millis. I wanted to convert this data into a struct type with json.UnMarshaller. I have mapped the field with json filed. But the conversion seems not working.</p>
  
  <p>IE :</p>
  
  <p>My Json looks like this:</p>
  
  <pre><code>{
     "name" : "hello",
     "lastModified" : 1438167001716
  }
  </code></pre>
  
  <p>and struct Looks like</p>
  
  <pre><code>type Model struct {
      Name         string    `json:"name"`
      Lastmodified time.Time `json:"lastModified"`
  }
  </code></pre>
  
  <p>looks not converting the time properly. how can i get the time from those millis??</p>
  
  <p>NB: The millis of lastModifiedTime are getting from java <code>System.currentTimeMillis();</code></p>