Skip to content

Output time in reasonable units - #10

Open
jestover wants to merge 1 commit into
jabiru:masterfrom
jestover:master
Open

Output time in reasonable units#10
jestover wants to merge 1 commit into
jabiru:masterfrom
jestover:master

Conversation

@jestover

@jestover jestover commented Dec 8, 2023

Copy link
Copy Markdown

Instead of always returning time in seconds, return time in

  • seconds if toc - tic < 60
  • else minutes if toc - tic < 60 * 60
  • else hours if toc - tic < 60 * 60 * 24
  • else days

Instead of always returning time in seconds, return time in 
- seconds if toc - tic < 60
- else minutes if toc - tic < 60 * 60
- else hours if toc - tic < 60 * 60 * 24
- else days
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

Successfully merging this pull request may close these issues.

1 participant