TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-220
#JULIANTIMESTAMP Built-In Function
#JULIANTIMESTAMP Built-In Function
Use #JULIANTIMESTAMP to obtain a selected four-word timestamp.
type
specifies the particular timestamp desired:
If you omit type, 0 is assumed.
tuid-request
if not zero, specifies that the time update ID is to be included in the result. The
default is zero.
Result
#JULIANTIMESTAMP returns the selected GMT timestamp; if tuid-request is not
zero, the timestamp is followed by a space and the current time update ID.
Examples
This example shows #JULIANTIMESTAMP output:
22> #OUTPUT [JULIANTIMESTAMP]
211481404070538528
This example illustrates the use of four-word timestamps obtained from
#JULIANTIMESTAMP and #FILEINFO to make a decision based on the age of a file
(represented by the dummy argument %1%):
[#IF [#JULIANTIMESTAMP] - [#FILEINFO /CREATION_GMT/.%1%]
> 31536000000000 == Julian number equivalent to 1 year
|THEN|
#OUTPUT %1% is more than 1 year old. Purge it?
]
#JULIANTIMESTAMP [ type [ tuid-request ] ]
0 current GMT
1 GMT when the system was loaded
2 GMT when SYSGEN was run