(t time.Time, opts listOptions)
| 33 | } |
| 34 | |
| 35 | func formatTime(t time.Time, opts listOptions) string { |
| 36 | switch opts.timeFormat { |
| 37 | case "short": |
| 38 | return t.Format("2006-01-02 15:04") |
| 39 | case "rfc3339": |
| 40 | return t.Format(time.RFC3339) |
| 41 | default: |
| 42 | return humanize.Time(t) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func getTime(e *files.FileMetadata, opts listOptions) time.Time { |
| 47 | if opts.timeField == "client" { |
no outgoing calls