Loading rockaroundtheclock/rockaroundtheclock.go 0 → 100644 +1 −0 Original line number Diff line number Diff line package rockaroundtheclock rockaroundtheclock/rockaroundtheclock_test.go 0 → 100644 +17 −0 Original line number Diff line number Diff line package rockaroundtheclock import ( "testing" "time" ) func TestHexToTimestamp(t *testing.T) { ticks := 0xa067bfbc t.Logf("ticks: %d", ticks) ts := time.Unix(int64(ticks), 0) t.Logf("Time: %s", ts.String()) now := time.Now() t.Logf("now in ticks: %d", now.UTC().Unix()) } Loading
rockaroundtheclock/rockaroundtheclock.go 0 → 100644 +1 −0 Original line number Diff line number Diff line package rockaroundtheclock
rockaroundtheclock/rockaroundtheclock_test.go 0 → 100644 +17 −0 Original line number Diff line number Diff line package rockaroundtheclock import ( "testing" "time" ) func TestHexToTimestamp(t *testing.T) { ticks := 0xa067bfbc t.Logf("ticks: %d", ticks) ts := time.Unix(int64(ticks), 0) t.Logf("Time: %s", ts.String()) now := time.Now() t.Logf("now in ticks: %d", now.UTC().Unix()) }