RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
528
Normal List
Command
mark_date
Function Marks a part of the date previously stored by time_fix, time_fix_f or time_fix_f_off in the
selected format at the current position.
Call
mark_date( Part, Mode )
Parameters
Part
Specifies which part of the date should be marked.
= 0: Year (only the last two digits).
= 1: Month (in customer specific notation).
= 2: Day (corresponding to the normal Gregorian date).
= 3: Day-of-the-week (in customer specific notation).
= 4: Julian day (see also time_fix_f_off).
= 5: Year (4 digits).
= 6: Month as numerals (January = 1,…).
= 7: Day-of-the-week as numerals (Sunday = 1,…).
As an unsigned 32-bit value.
Allowed value range: [0…7].
Mode
Selection of the format.
As an unsigned 32-bit value.
Allowed value range: [0…3].
a) Only affects
Part =
2, 4, 6 or 7:
The number of leading zeros in the day number.
Bit #0 = 0: Leading zeros are suppressed.
Bit #0 = 1: Day of the month (
Part =
2), always two digits.
Day of the year (
Part =
4), always three digits.
Month (
Part =
6), always two digits.
Day-of-the-week (
Part =
7), always two digits.
b) Only affects
Part =
0, 2 or 4…7:
Desired character set for marking digits.
Bit #1 = 0: The indexed text string for digits [0…9], as defined by
load_text_table or set_text_table_pointer, is marked.
Bit #1 = 1: The indexed characters for digits [0…9], as defined by
load_char or set_char_pointer, are marked. The desired
character set can be specified with select_char_set.
For
Part
= 1 or 3, days of the month or days of the week are marked by
indexed text strings (Index = 10…28) defined with load_text_table or
set_text_table_pointer (here, the parameter
Mode
is ignored). For marking as
numerals, also
Part
= 6 or 7 can be used (then
Mode
is considered).