(now time.Time)
| 11 | ) |
| 12 | |
| 13 | func TimeToTimestampString(now time.Time) string { |
| 14 | return strconv.FormatInt(now.Unix(), 10) |
| 15 | } |
| 16 | |
| 17 | func TimestampStringToTime(now string) (time.Time, error) { |
| 18 | ts, err := strconv.ParseInt(now, 10, 64) |
no outgoing calls
no test coverage detected