Bowarc / crates

Collection of small crates i use in my projects
1 stars 0 forks source link

[Time] Fix bad format function #15

Closed Bowarc closed 8 months ago

Bowarc commented 9 months ago

Maybe add a str arg to customize the time output like time::format("%H:%M") for hour mins

Bowarc commented 8 months ago

Or give a number that would represent the number of 'precision' you'd want

Example: time elapsed was 2h 14m 3s 169ms rtc..

format(1) would give 2h format(2) would give 2h 14m

Etcc and ofc it wouldn't show 0h or 0m