You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the time package allows for converting time.Timeto nanoseconds. This issue proposes a symmetrical helper that converts nanoseconds to time.Time:
The proposed API follows a similar pattern to the existing helpers: UnixMilli and UnixMicro implemented in 49dccf1:
func UnixNano(nsec int64) Time {
return Unix(nsec/1e9, nsec%1e9)
}
The text was updated successfully, but these errors were encountered:
Currently, the
time
package allows for convertingtime.Time
to nanoseconds. This issue proposes a symmetrical helper that converts nanoseconds totime.Time
:The proposed API follows a similar pattern to the existing helpers:
UnixMilli
andUnixMicro
implemented in 49dccf1:The text was updated successfully, but these errors were encountered: