Time functions
In the time function descriptions, text-type data refers to data in HH:MM:SS format with two digits for hours, two digits for minutes, and two digits for seconds separated by colons. Time-type data refers to six-digit data containing two digits each for hours, minutes, and seconds in HHMMSS format.
Restriction
Parameters in time functions are generally required to be specified as time-type data in six-digit HHMMSS format. If four-digit data such as HHMM or MMSS format is specified for a function that expects time-type data as a parameter, an internal error will occur and the correct value cannot be retrieved.
To use text-type data in the time-type data parameter of a time function, the data type must be converted using CTOT.
Function name | Feature |
---|---|
Converts time-type data (HHMMSS) into text-type data (HH:MM:SS). | |
Retrieves the system time. | |
Retrieves the system time. | |
Converts text-type data (HH:MM:SS) into time-type data (HHMMSS). | |
Retrieves only hours (HH) as numeric-type data from time-type data (HHMMSS). | |
Retrieves only minutes (MM) as numeric-type data from time-type data (HHMMSS). | |
Retrieves only seconds (SS) as numeric-type data from time-type data (HHMMSS). |
TTOC
Feature | Converts time-type data (HHMMSS) into text-type data (HH:MM:SS). |
---|---|
Format | TTOC(time_data) |
Settings |
CautionThe argument should be data from 000000 to 235959. |
Usage examples | Prerequisite When time data "203040" is entered in the text-type field "S1"
|
TIME
Feature | Retrieves the system time. |
---|---|
Format | TIME() |
Settings | This will retrieve the system time at the time of printing (when the TIME function is executed) as time-type data (HHMMSS). |
Usage examples |
|
ITIME
Feature | Retrieves the system time. |
---|---|
Format | ITIME() |
Settings | This will retrieve the system time at the time of printing as time-type data (HHMMSS). |
Usage examples | ReferenceSpecify this function if you want to print the same printing time on all of the pages in the same spool data.
|
CTOT
Feature | Converts text-type data (HH:MM:SS) into time-type data (HHMMSS). |
---|---|
Format | CTOT(string_or_character_field_name) |
Settings |
CautionThe argument should be data from 00:00:00 to 23:59:59. |
Usage examples | Prerequisite When character data "20:30:40" is entered in the text field "S1"
|
HOUR
Feature | Retrieves only hours (HH) as numeric-type data from time-type data (HHMMSS). |
---|---|
Format | HOUR(time_data) |
Settings |
Caution
|
Usage examples | Prerequisite When time data "203040" is entered in the text-type field "S1"
|
MINT
Feature | Retrieves only minutes (MM) as numeric-type data from time-type data (HHMMSS). |
---|---|
Format | MINT(time_data) |
Settings |
Caution
|
Usage examples | Prerequisite When time data "203040" is entered in the text-type field "S1"
|
SEC
Feature | Retrieves only seconds (SS) as numeric-type data from time-type data (HHMMSS). |
---|---|
Format | SEC(time_data) |
Settings |
Caution
|
Usage examples | Prerequisite When time data "203040" is entered in the text-type field "S1"
|