hour12

Syntax

	$calendar.hour12()

Description

The hour of the given calendar in 12-hours format.

Parameters

Name Type Description Mandatory Default
calendar Business object The calendar whose hour is to be determined. It can be a system or user calendar. yes

Return value

Type: Number

A number representing the hour in 12-hour format of the given calendar.

Examples

Note: The output may differ depending on the calendar's time zone.

	dateTime(2012, 8, 5, 15, 55, 23, 16).toUserCalendar().hour12()

Output: 3