MCPcopy Index your code
hub / github.com/Preloading/TwitterAPIBridge / TwitterTimeConverter

Function TwitterTimeConverter

bridge/bridge.go:617–619  ·  view source on GitHub ↗

FormatTime converts Go's time.Time into the format "Wed Sep 01 00:00:00 +0000 2021"

(t time.Time)

Source from the content-addressed store, hash-verified

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

Callers 4

AuthorTTBFunction · 0.92
processNotificationGroupFunction · 0.92
TranslatePostToTweetFunction · 0.92
GetUserInfoFromTweetDataFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected