CultureInfo.to24hMode

Syntax

to24hMode(hour: Number, amFlag: Boolean);

Parameters

hour. Time hour.

amFlag. Indicates if the specified hour belongs to the first half of the day. If this parameter is True the specified hour belongs to the first half of the day, otherwise this hour is in the second half of the day.

Description

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

Comments

This method returns a Number type value.

Example

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

See also:

CultureInfo