Total Lines | 10 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | package tests |
||
2 | |||
3 | import "time" |
||
4 | |||
5 | func smallSubTime(d time.Duration) string { |
||
6 | 1 | return time.Now().Add(d).Format("2006-01-02 15:04:05") |
|
7 | } |
||
8 | |||
9 | func bigSubTime(years int, months int, days int) string { |
||
10 | 1 | return time.Now().AddDate(-years, -months, -days).Format("2006-01-02 15:04:05") |
|
11 | } |
||
12 |