massivefermion / birl

datetime handling for gleam
https://hex.pm/packages/birl
Apache License 2.0
72 stars 9 forks source link

Add functions to get and create Time based on Unix timestamps with a millisecond or microsecond precision. #28

Closed yerTools closed 6 months ago

yerTools commented 6 months ago

This pull request adds the following public functions:

Those work exactly the same way as the existing ones:

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.

anuragsarkar97 commented 6 months ago

when can we expect this PR to merge ?

massivefermion commented 6 months ago

Could you fix the formatting per the latest gleam version?

yerTools commented 6 months ago

@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:

massivefermion commented 6 months ago

It's fine, thanks!