Brother International TD-4750TNWB FBPL Command Reference - Page 233
MONTH, Description, Syntax, Example, See Also
![]() |
View all Brother International TD-4750TNWB manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 233 highlights
12.3 MONTH Description Write/read the month data via the Real Time Clock (RTC). Two-digit (01~12) month format is supported by RTC. Syntax Write attribute: MONTH = 01 Read attribute: A = MONTH Range: 01~12 Example Sample code DOWNLOAD "SetMonth.BAS" REM *****Set Month Parameter to RTC***** MONTH=01 EOP SetMonth Sample code DOWNLOAD "DEMO.BAS" SIZE 4,1 GAP 0,0 DIRECTION 1 CLS REM *****Read Month parameter form RTC***** MONTH$=STR$(MONTH) M=MONTH REM *****Print***** TEXT 10,10, "3",0,1,1, "MONTH1="+MONTH$ TEXT 10,50, "3",0,1,1, "MONTH2="+STR$(M) TEXT 10,90, "3",0,1,1, "MONTH3="+STR$(MONTH) PRINT 1 EOP DEMO Result See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND 228
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/233.png)
228
12.3 MONTH
Description
Write/read the month data via the Real Time Clock (RTC). Two-digit (01~12) month format is supported by
RTC.
Syntax
Write attribute:
MONTH = 01
Read attribute:
A = MONTH
Range:
01
~
12
Example
Sample code
DOWNLOAD "SetMonth.BAS"
REM *****Set Month Parameter to RTC*****
MONTH=01
EOP
SetMonth
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM *****Read Month parameter form RTC*****
MONTH$=STR$(MONTH)
M=MONTH
REM *****Print*****
TEXT 10,10,
"
3",0,1,1,
"
MONTH1="+MONTH$
TEXT 10,50,
"
3",0,1,1,
"
MONTH2="+STR$(M)
TEXT 10,90,
"
3",0,1,1,
"
MONTH3="+STR$(MONTH)
PRINT 1
EOP
DEMO
Result
See Also
~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND