FormatTime converts Go's time.Time into the format "Wed Sep 01 00:00:00 +0000 2021"
(t time.Time)
| 615 | |
| 616 | // FormatTime converts Go's time.Time into the format "Wed Sep 01 00:00:00 +0000 2021" |
| 617 | func TwitterTimeConverter(t time.Time) string { |
| 618 | return t.Format("Mon Jan 02 15:04:05 -0700 2006") |
| 619 | } |
| 620 | |
| 621 | func TwitterTimeParser(timeStr string) (time.Time, error) { |
| 622 | layout := "Mon Jan 02 15:04:05 -0700 2006" |
no outgoing calls
no test coverage detected