gempir

Untitled

Aug 26th, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.22 KB | None | 0 0
  1.     var fromTime time.Time
  2.     var toTime time.Time
  3.  
  4.     if from == "" && to == "" {
  5.         fromTime = time.Now().AddDate(0, -1, 0)
  6.         toTime = time.Now()
  7.     } else if from == "" && to != "" {
  8.         toTime, err := parseTimestamp(to)
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment