Unix wraps time.Unix ensuring that the result is in UTC instead of Local. The process of deriving the args to construct a specific time.Time: // say we want to construct timestamp "294277-01-01 23:59:59.999999 +0000 UTC" tm := time.Date(294277, 1, 1, 23, 59, 59, 999999000, time.UTC) // get the
(sec, nsec int64)
| 118 | // // verify |
| 119 | // fmt.Println(tm == time.Unix(sec, nsec).UTC()) |
| 120 | func Unix(sec, nsec int64) time.Time { |
| 121 | return time.Unix(sec, nsec).UTC() |
| 122 | } |
| 123 | |
| 124 | // ReplaceLibPQTimePrefix replaces unparsable lib/pq dates used for timestamps |
| 125 | // (0000-01-01) with timestamps that can be parsed by date libraries. |
no outgoing calls
no test coverage detected
searching dependent graphs…