It's...way too many rows, now that I have the actual data. It needs to be reworked.
15 lines
211 B
Go
15 lines
211 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/aarondl/opt/null"
|
|
)
|
|
|
|
func fsTimestampToTime(t null.Val[int64]) *time.Time {
|
|
if t.IsNull() {
|
|
return nil
|
|
}
|
|
result := time.UnixMilli(t.MustGet())
|
|
return &result
|
|
}
|