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.
Syntax Button |
Description |
---|---|
T[???] |
Returns the time in the format HH:MM:SS AM|PM. For example:
|
T[now] |
Returns the current time in the format HH:MM:SS AM|PM. For example, returns: .
|
?.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. |