UTC Timezones #331
guycipher
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been doing some testing and this seems to work pretty darn well. Others can try and verify to see if I'm wrong here :)
var tlz, _ = time.LoadLocation("Asia/Kamchatka) scheduler.Every(1).Second().LimitRunsTo(1).Tag("log_" + logUUID.String()).StartAt(time.Now().Add(time.Hour * 8).In(tlz).Add(time.Second * 2)).Do(func() { logSomething("Hello") })
Apparently UTC timezone formatting has a 97 nanoseconds (1 sigma). T accuracy!
Beta Was this translation helpful? Give feedback.
All reactions