You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timeprint should be able to track the next greater unit automatically, left to right. Possibly try out a new experimental delta token that does this automatically. Try new delta symbol -. This would yield the following syntax:
%-['kd][0]<U>[.[#]]
-v- v v --v-
Numeric Format --------' | | |
Optional leading zeros ----' | |
Units ------------------------' |
Decimal Precision -----------------'
How to handle the case where the next greater unit was equal or smaller than the current? Consider suppressing the interpretation of the current code (printing it literally), or insert an error indicator.
Alternative: lowercase characters denote context-aware modulo, uppercase versions are always full values. In addition, if a greater or same unit is specified after a lesser or same unit, then just reset the prior modulo to none.
timeprint should be able to track the next greater unit automatically, left to right. Possibly try out a new experimental delta token that does this automatically. Try new delta symbol
-
. This would yield the following syntax:How to handle the case where the next greater unit was equal or smaller than the current? Consider suppressing the interpretation of the current code (printing it literally), or insert an error indicator.
As an example, this:
becomes this:
More intuitive and less error-prone. An sketch of an erroneous format string:
The text was updated successfully, but these errors were encountered: