Skip to content

Instantly share code, notes, and snippets.

@dbellotti
Last active August 26, 2016 02:10
Show Gist options
  • Save dbellotti/578c49a10efe466ff945769b7f849737 to your computer and use it in GitHub Desktop.
Save dbellotti/578c49a10efe466ff945769b7f849737 to your computer and use it in GitHub Desktop.
Trons left before Aug 27, 2016 18:00 PDT
package main
import (
"fmt"
"time"
)
func main() {
tronRunTime := 96 * time.Minute
endTime := time.Date(2016, time.August, 27, 1, 0, 0, 0, time.UTC)
trons := endTime.Local().Sub(time.Now().Local()).Seconds() / tronRunTime.Seconds()
fmt.Printf("%.2f Trons\n", trons)
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment