simularium / simularium-website

Front end website for the Simularium project, includes the Simularium viewer
https://simularium.allencell.org
Apache License 2.0
7 stars 3 forks source link

Handle hour and minute timescales #176

Open schoinh opened 3 years ago

schoinh commented 3 years ago

Use Case

For some trajectories that have hours-long timescales (COVID one for example), it would be nice to be able to support hours and minutes

Solution

Ideally display hours and minutes as something like HR:MM

Comments from Jira:

image

blairlyons commented 3 years ago

yeah now that the user provides the time units, I think if the user-provided units are min or hours, instead of displaying their fractions as a decimal (e.g. 2.X ms, 5.X days), display them as :XX in base 60. So if units are hours, display HH:MM hrs, if units are minutes, display MM:SS min.