We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
package actions
import (
"time"
)
const (
layout = "2006-01-02T15:04:05Z"
)
func TimestampToStringFromInt64(timestamp int64) string {
// Convert the timestamp to time.Time
time := time.Unix(0, timestamp*int64(time.Millisecond)).UTC()
// Convert the time to a formatted string
return time.Format(layout)
}
func TimestampFromStringToInt64(timestamp string) (int64, error) {
// Convert the string to time.Time
timeValue, err := time.Parse(layout, timestamp)
if err != nil {
return 0, err
}
// Convert the time to a timestamp
return timeValue.UnixNano() / int64(time.Millisecond), nil
}
func TimestampToStringFromTime(time time.Time) string {
// Convert the time to a formatted string
return time.Format(layout)
}