TOD


The TOD service formats and displays an eight-byte time of day (TOD) clock value.

Related topic

You can specify the values to be formatted as a hexadecimal value, or you can specify an expression, that when evaluated within the context of the specified address space, denotes the address of the TOD value to be formatted. Optionally, you can request that the value be converted from GMT to local time or from local time to GMT.

Syntax

GUID-4CECF20A-9C81-41AC-B02B-E58B00E04FF0-low.pngThe parameters are defined as follows:

Parameter

Description

expression

expression can be any valid expression as described in the section titled Expressions. It can also be an eight- or four-byte hexadecimal literal value enclosed within quotation marks and prefixed with an X.

LOCAL

(optional) assumes that the value is in GMT and is to be converted to local time

GMT

(optional) assumes that the value is in local time and is to be converted to GMT

Important

The value is not converted when neither LOCAL nor GMT is specified.

asi

(optional) denotes the address space that contains the TOD value addressed by the expression

If omitted, the address space implied by the expression (if any) will be used. If no address space is expressly specified or implied, the user's address space is used.

Important

The asi variable and LOCAL|GMT can be specified in either the second or the third parameter position.

Example 1

Format and display the date and time the JES2 address space was initiated. Convert the time to LOCAL time.

TOD,ASCB+130,JES2,LOCAL

AMTTD1I 10:19:19.34 PM                     
AMTTD2I Wednesday, May 12, 2010 Local time
AMT001A SYSPROG

Example 2

Format and display the hexadecimal value X' C45B3A532692C383' in date and time format.

tod,X'C45B3A532692C383'

AMTTD1I 6:13:13.53 PM                         
AMTTD2I Thursday, June 18, 2009 (GMT assumed)

Example 3

Convert to local time, format and display the hexadecimal value X' C45B3A532692C383' in date and time format.

tod X'C45B3A532692C383',local

AMTTD1I 11:13:13.53 AM                      
AMTTD2I Thursday, June 18, 2009 Local time  
AMT001A SYSPROG

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*