CultureInfo.to12hMode

Syntax

to12hMode(hour: Number);

Parameters

hour. Time hour.

Description

The to12hMode method converts specified hour from 24-hour format to 12-hour one.

Comments

This method returns an array. The value with the index ) is the hour number in 12 hour format, value with the index 1 indicates that the specified time hour belongs to the first half of the day.

Example

The example of use is given in the with description of the CultureInfo.dateToStr method.

See also:

CultureInfo