addToClockOrigin returns the given Duration added to test.ClockOrigin, in UTC, and RFC3339Nano formatted.
(d time.Duration)
| 88 | // addToClockOrigin returns the given Duration added |
| 89 | // to test.ClockOrigin, in UTC, and RFC3339Nano formatted. |
| 90 | func addToClockOrigin(d time.Duration) string { |
| 91 | return test.ClockOrigin.Add(d).UTC().Format(time.RFC3339Nano) |
| 92 | } |
| 93 | |
| 94 | func init() { |
| 95 | ownerRef = indextest.PubKey |