EasyManuals Logo

TSC TTP-247 Programming Manual

TSC TTP-247
252 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #183 background imageLoading...
Page #183 background image
TSC AUTO ID Technology Co., Ltd. 171 Copyright 2013 All Rights Reserved.
DATEADD()
Description
Returns a date after which a specified time/date interval has been added. The returned value always
uses with commands FORMAT$().
Syntax
DATEADD(interval$,number,date)
Parameter
Description
interval$,
The time/date interval for adding. It can be one of following values.
interval$
The interval unit of parameter interval$
"yyyy"
Year.
"q"
Quarter.
"m"
Month.
"y"
Day of year.
"d"
Day.
"w"
Weekday.
"ww"
Week of year.
"h"
Hour.
"n"
Minute.
"s"
Second.
number
The number of interval$ for adding.
date
The date which is used to add the interval$.
Date format: "yyyy/mm/dd"
Time format: "hh:nn:ss"
Note:
This command has been supported since V6.87 EZ and later firmware.
Example
Sample Code 1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"Current RTC info: "+NOW$()
TEXT 10,60,"3",0,1,1,"-1 year: "+FORMAT$(DATEADD("yyyy",-1,"11/26/2012 10:08:00"),"yyyy/mm/dd hh:nn:ss")
TEXT 10,110,"3",0,1,1,"+9 months: "+FORMAT$(DATEADD("m",9,NOW),"Short Date")
TEXT 10,160,"3",0,1,1,"-8 hours: "+FORMAT$(DATEADD("h",-8,NOW),"Short Time")
TEXT 10,210,"3",0,1,1,"+5 mins: "+FORMAT$(DATEADD("n",5,NOW),"Short Time")
TEXT 10,260,"3",0,1,1,"+00 day: "+FORMAT$(NOW,"Short Date")
TEXT 10,310,"3",0,1,1,"+20 days: "+FORMAT$(DATEADD("d",20,NOW),"Short Date")
TEXT 10,360,"3",0,1,1,"-20 day: "+FORMAT$(DATEADD("d",-20,NOW),"Short Date")
PRINT 1
Result 1

Table of Contents

Other manuals for TSC TTP-247

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the TSC TTP-247 and is the answer not in the manual?

TSC TTP-247 Specifications

General IconGeneral
Print MethodThermal Transfer / Direct Thermal
Resolution203 dpi
Max Print Width4.09" (104 mm)
Processor32-bit RISC CPU
Weight2.5 kg
Max Print Speed7 ips
Memory8 MB SDRAM, 4 MB Flash
InterfaceUSB 2.0, Serial
Ribbon Capacity300 meters
Label Width1" (25.4 mm) ~ 4.33" (110 mm)
Label Thickness0.06 mm ~ 0.19 mm
Power SupplyExternal Universal Switching Power Supply
Operating Temperature5°C to 40°C (41°F to 104°F)
Storage Temperature-4°F to 140°F (-20°C to 60°C)
Operating Humidity25% to 85%, non-condensing
CertificationsCE, FCC, UL, CCC

Related product manuals