Closed yerTools closed 6 months ago
when can we expect this PR to merge ?
Could you fix the formatting per the latest gleam version?
@massivefermion The latest Gleam version 1.1.0 also reorders imports in other files. I fixed formatting for 1.0.0, the one in the GitHub workflow.
Sorry for the additional work. :smile:
It's fine, thanks!
This pull request adds the following public functions:
to_unix_milli(value: Time) -> Int
from_unix_milli(value: Int) -> Time
to_unix_micro(value: Time) -> Int
from_unix_micro(value: Int) -> Time
Those work exactly the same way as the existing ones:
to_unix(value: Time) -> Int
from_unix(value: Int) -> Time
with the difference beeing, that the precition is increased.
I added those functions because I want to store the current time as a Unix timestamp in a SQLite database with the highest precision possible for logging events. They also shouldn't have a high maintainability overhead since they are really simple.