amPm

Syntax

	$calendar.amPm()

Description

Indicates whether the hour of the calendar is a.m. (morning) or p.m. (afternoon). A.m. is represented by 0 and p.m. by 1.

Parameter

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

Return value

Type: Number

A number indicating whether the hour is a.m. (0) or p.m. (1).

Examples

	dateTime(2012, 8, 5, 22, 55, 23, 16).toUserCalendar().amPm()

Output: 1

The hour 22 represents 10 p.m.