Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be possible to add more units #5

Open
MatthewStanciu opened this issue Oct 18, 2022 · 0 comments
Open

It should be possible to add more units #5

MatthewStanciu opened this issue Oct 18, 2022 · 0 comments

Comments

@MatthewStanciu
Copy link
Member

This is going to be very not trivial to implement, but I think there should be a way to add more units. Right now the library only goes down to charges, which means that you can't build https://lightning-time.vercel.app, which goes down one unit further, using this library. It should be possible to use this library to go down as many units as you want.

Maybe instead of hardcoding this:

const millisPerCharge = 1318.359375 // 86400000 / 16^4

it would instead be millisPerSmallestUnit and then you could do like addUnit('unitName') and

ugh idk how to do this rn, but should figure it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant