TTS % variables /label ~enhancement
- Please re-assign variable %A ↣ %P 2conform with ¿ POSIX ? Glibc standard usage.
- People waking up during an overseas flight might nead to know what day it is, so please add additional variables needed for TTS voice to announce ie.
"Good morning its 8 o'clock tuesday japan standard time"
-
morning/evening/night
(This is not in any standard string variables maybe assign it to „%EP”)
-
monday/tuesday/...
-
january/feb/...,
-
TZ Pacific daylight time
-
TZ minus/plus UTC±0800
-
¿other?
- Define the max expanded string length + add note on readme file
- Update readme.md example follows
Allowed TTS % variables as per the following exerpt from ref.
STRFTIME(3) format date/time - Linux Programmer's Manual
STRFTIME(3P) convert date and time to a string- POSIX Programmer's Manual
%A The full name of the day of the week according to the
current locale. (Calculated from tm_wday.)
%B The full month name according to the current locale.
(Calculated from tm_mon.)
%d The day of the month as a decimal number (range 01 to 31).
(Calculated from tm_mday.)
%e Like %d, the day of the month as a decimal number, but a leading
zero is replaced by a space. (SU) (Calculated from tm_mday.)
%E Modifier: use alternative format, see below. (SU)
%F Equivalent to %Y-%m-%d (the ISO 8601 date format). (C99)
%H The hour as a decimal number using a 24-hour clock (range 00 to 23).
(Calculated from tm_hour.)
%I The hour as a decimal number using a 12-hour clock (range 01 to 12).
(Calculated from tm_hour.)
%O Modifier: use alternative format, see below. (SU)
%p Either "AM" or "PM" according to the given time value,
or the corresponding strings for the current locale.
Noon is treated as "PM" and midnight as "AM".
(Calculated from tm_hour.)
%P Like %p
%x The preferred date representation for the current locale²
without the time.
%X The preferred time representation for the current locale²
without the date.
%z The +hhmm or -hhmm numeric timezone (that is,
the hour and minute offset from UTC). (SU)
%Z The timezone or name or abbreviation.
☡ If the expanded variables exceed the buffer capacity
an overflow may cause unexpected results!💋 KISS⚠
current locale² From phone's System Settings: Language ; Time and Date
•.¸¸.•
/label enhancement
Edited by GSMC Mike A. Kouklis USN-Retired