MCPcopy Create free account
hub / github.com/Preloading/TwitterAPIBridge / TwitterTimeParser

Function TwitterTimeParser

bridge/bridge.go:621–624  ·  view source on GitHub ↗
(timeStr string)

Source from the content-addressed store, hash-verified

619}
620
621func TwitterTimeParser(timeStr string) (time.Time, error) {
622 layout := "Mon Jan 02 15:04:05 -0700 2006"
623 return time.Parse(layout, timeStr)
624}
625
626func XMLEncoder(data interface{}, oldHeaderName string, newHeaderName string) (*string, error) {
627 // Encode the data to XML

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected