Browse Source

gitea=>gogs

Sacha Ligthert 17 hours ago
parent
commit
b9d2bb027f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tp.go

+ 6 - 0
tp.go

@@ -92,6 +92,12 @@ func renderCustom(t1 time.Time, t2 time.Time) string {
 
 	percentage := calcPercentageFloat64(seconds, tdiff+float64(offset))
 
+	// hours := t2.Sub(t1).Hours()
+	// tdiff = ct.Sub(t1).Hours()
+	// hdiff := hours - tdiff
+
+	// fmt.Printf("Uren te gaan: %v\nDagen te gaan: %v\nJaren te gaan: %v\n", hdiff, hdiff/24, (hdiff/24)/365)
+
 	var render string
 	render = renderPercentage(percentage)
 	render = render + fmt.Sprintf(" %.7f%%", percentage)