|
| int | beats_from_ms (int32_t ms_into_bmt_day) |
| | Calculates swatch internet time in .beats (0..999) for a given ms.
|
| uint32_t | ms_until_next_beat (int32_t ms_into_bmt_day) |
| | Calculates milliseconds until the next .beats boundary.
|
| int32_t | beats_ms_from_hms (int hour, int minute, int second, uint16_t ms) |
| | Milliseconds into the Biel Mean Time day, from a UTC wall clock.
|
| static int | token_at (const char *text) |
| bool | beats_has_token (const char *format) |
| | Whether a date format asks for a .beats reading.
|
| void | beats_expand_token (char *text, int beats) |
| | Overwrite every BEATS_TOKEN in a string with a three digit .beats reading.
|
Pure swatch .beats math, host-testable off-device.