order_test.go 227 B

12345678910111213
  1. package service
  2. import (
  3. "fmt"
  4. "testing"
  5. "time"
  6. )
  7. func TestOrderTime(t *testing.T) {
  8. now := time.Now()
  9. threeDaysAgo := time.Date(now.Year(), now.Month(), now.Day()-3, 0, 0, 0, 0, time.Local)
  10. fmt.Println(threeDaysAgo)
  11. }