red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
89 stars 14 forks source link

Add DateTime types #100

Closed kalrnlo closed 2 months ago

kalrnlo commented 2 months ago

Adds in DateTime and DateTimeMillis as types, with DateTime sending the UnixTimestamp property of the DateTime object, and DateTimeMillis sending the UnixTimestampMillis property of the DateTime object.

kalrnlo commented 2 months ago

I'm pretty happy with the code. I just would like you to confirm - what's the motivation between adding two DateTime types? I definitely think we'll keep it, just want to make sure we're on the same wavelength!

Mainly because sometimes using milliseconds is desired over seconds for cases where the extra accuracy is needed