MCPcopy Create free account
hub / github.com/NextDotID/proof_server / TimestampStringToTime

Function TimestampStringToTime

util/util.go:17–24  ·  view source on GitHub ↗
(now string)

Source from the content-addressed store, hash-verified

15}
16
17func TimestampStringToTime(now string) (time.Time, error) {
18 ts, err := strconv.ParseInt(now, 10, 64)
19 if err != nil {
20 return time.Time{}, xerrors.Errorf("%w", err)
21 }
22
23 return time.Unix(ts, int64(0)), nil
24}
25
26func DecodeString(s string) ([]byte, error) {
27 sigBytes, err := base64.StdEncoding.DecodeString(s)

Callers 15

Test_ProofUploadFunction · 0.92
validateProofFunction · 0.92
Test_Proof_RevalidateFunction · 0.92
generateFunction · 0.92
generateBase1024EncodeFunction · 0.92
generateFunction · 0.92
generateFunction · 0.92
parseTxtFunction · 0.92
buildFunction · 0.92
generateFunction · 0.92

Calls

no outgoing calls

Tested by 15

Test_ProofUploadFunction · 0.74
Test_Proof_RevalidateFunction · 0.74
generateFunction · 0.74
generateBase1024EncodeFunction · 0.74
generateFunction · 0.74
generateFunction · 0.74
buildFunction · 0.74
generateFunction · 0.74
generateBase1024EncodeFunction · 0.74
GenerateMisskeyRecordFunction · 0.74