NewTimeValue makes a new TimeValue; will round t down to the nearest midnight.
(t time.Time)
| 12 | |
| 13 | // NewTimeValue makes a new TimeValue; will round t down to the nearest midnight. |
| 14 | func NewTimeValue(t time.Time) TimeValue { |
| 15 | return TimeValue{ |
| 16 | Time: t, |
| 17 | set: true, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | // String implements flag.Value |
| 22 | func (v TimeValue) String() string { |
no outgoing calls