Skip to content

Commit

Permalink
wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Jan 27, 2024
1 parent 9a67fe9 commit f87f3c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions float_ms.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func NewFloatMS(t time.Time) FloatMS {
func (s FloatMS) MarshalJSON() ([]byte, error) {
milli := s.Time.UnixMilli()
f := float64(milli) / float64(msPerS)

return json.Marshal(f)
}

Expand Down

0 comments on commit f87f3c3

Please sign in to comment.