Formatting of time fields
rorydonohue opened this issue · 3 comments
I'm wondering if it's possible to have a format for time fields (e.g. HH:MM or HH:MM:SS) ?
I'm trying with the format field (format: 'dd:dd:dd') however I'm not having any luck, everything gets rounded relative to the first digit.
Thanks!
For the meantime I have split the time fields up by ':' and run odometer on each separately with the leading zero fix. However it would be a nice feature to have for this to work out of the box.
In addition to this, I've been able to work around the leading zeros issue by using the workaround listed here: #106
However in terms of time, once the value hits 59, it needs to change to '00' (or vice versa when counting down). This could be handled in when setting the value in the timing function, however skipping forward or backward causes a big animation between all values.
I also think that supporting date and time is a very good idea!
I could not find a good work around to animate from e.g. 31 to 1 for day overflow. Any hints?