https://slatedb.io logo
@almog Can you remind me why we support:
# general
c
@almog Can you remind me why we support: a) negative timestamps for SystemClock b) negative timestamps for LogicalClock (vs u64)
a
They both represent times before unix epoch - so it's for interoperability with other time based libraries
(sorry for the delayed response, that was an easy question I could've just answered on my phone from Italy 😅 )
c
Ya makes sense.. dmvk mentioned this as well
I wasn't thinking about the streaming use cases
event payload might have timestamps before epoch etc
a
yeah seems weird use case to me, but I just wanted to keep it standard with other time systems which use i64 (rust's SystemTime is annoying in that they only allow you to get a Duration and then convert that to u64, they don't let you convert a SystemTime directly to millis)
c
Yea Rust's time system sucks. I have a PR open to switch everything to chrono