Time tab Syntax Buttons

The Time tab syntax buttons indicate all the ways you can add a Time object to an expression. Clicking on one of the buttons adds the indicated syntax (minus the question marks) to your expression. In the spaces left by the question marks, enter the appropriate values.

Time Syntax Button Descriptions

Syntax Button

Description

T[???]

Returns the time in the format HH:MM:SS AM|PM.

For example:

T[3:39 AM]
T[3:34:42 PM]
T[11:59:58 PM EST]

T[now]

Returns the current time in the format HH:MM:SS AM|PM.

For example, returns:

T[3:34:42 PM]
.

?.ampm

Returns an int number of the date object; AM=0, PM=1

?.hour

Returns the hour represented by this Date object. The returned value is a number (0 through 23) representing the hour within the day that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone.

?.hod

Returns the hour represented by this Date object. The returned value is a number (0 through 23) representing the hour within the day that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone.

?.min

Returns the number of minutes past the hour represented by this date, as interpreted in the local time zone. The value returned is between 0 and 59.

?.sec

Returns the number of seconds past the minute represented by this date. The value returned is between 0 and 61. The values 60 and 61 can only occur on those Java Virtual Machines that take leap seconds into account.

?.ms

Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.

Note

The .ampm, .hour, .hod, .min, .sec, and .ms variables do not require the Java license.