EasyManuals Logo

HP TACL User Manual

HP TACL
235 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 #39 background imageLoading...
Page #39 background image
Accessing Time Data
Developing TACL Programs
107365 Tandem Computers Incorporated 2–19
Converting a Timestamp As noted previously, you can retrieve timestamps from the system in a three-word or
four-word format. In addition, the #FILEINFO function returns timestamps in a three-
word or four-word format, depending on the option you select. After you obtain the
timestamp, you can include it in a function call, use it for calculations, or display it.
Use the functions and commands in Table 2-4 to convert between time and date
representations. CONTIME is an abbreviation for converted time.
Table 2-4. Timestamp Conversion Functions
Starting Timestamp Ending Timestamp Function
Four-word (Julian) Numeric date, including Julian day #INTERPRETTIMESTAMP
Three-word Numeric date #CONTIME
Numeric date Four-word #COMPUTETIMESTAMP
Numeric date Julian day number #COMPUTEJULIANDAYNO
Three-word Four-word #CONVERTTIMESTAMP
Four-word Three-word #CONVERTTIMESTAMP
Julian day number Numeric date #INTERPRETJULIANDAYNO
Numeric date Textual date _CONTIME_TO_TEXT
Numeric date Textual date without time _CONTIME_TO_TEXT_DATE
Numeric date Textual time _CONTIME_TO_TEXT_TIME
In addition, the _MONTH3 function translates a two-digit month number to a three-
letter month abbreviation.
Figure 2-7 shows the TACL functions that transform system timestamps from four-
word and three-word formats to display format. Figure 2-8 shows how to convert
timestamps returned by #FILEINFO into different formats.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP TACL and is the answer not in the manual?

HP TACL Specifications

General IconGeneral
BrandHP
ModelTACL
CategorySoftware
LanguageEnglish

Related product manuals