1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 func (ts
*Timestruc
) Unix() (sec
int64, nsec
int64) {
8 return int64(ts
.Sec
), int64(ts
.Nsec
)
11 func (ts
*Timestruc
) Nano() int64 {
12 return int64(ts
.Sec
)*1e9
+ int64(ts
.Nsec
)