OSID Logo
OSID Specifications
locale package
Version 3.1.0
Interfaceosid.locale.TimeInfo
Used Byosid.locale.CalendarInfoSession
Description

This interface defines methods to examine a time. Time is organized intro "hours," "minutes," and "seconds." A time system may offer a different designation for these divisions which may or may not vary in duration.

MethodgetTimeType
Description

Gets the time type.

Returnosid.type.Type the time type
Compliancemandatory This method must be implemented.
MethodgetDisplayName
Description

Gets the display name for this time system.

Returnosid.locale.DisplayText the display name
Compliancemandatory This method must be implemented.
MethodgetDisplayLabel
Description

Gets a short label for this time system.

Returnosid.locale.DisplayText the label
Compliancemandatory This method must be implemented.
MethodgetDescription
Description

Gets a description of this time system.

Returnosid.locale.DisplayText the description
Compliancemandatory This method must be implemented.
MethodgetHourName
Description

Gets the display name for "hours."

Returnosid.locale.DisplayText the name
Compliancemandatory This method must be implemented.
MethodgetHourAbbrev
Description

Gets the abbreviation for "hours."

Returnosid.locale.DisplayText the abbreviation
Compliancemandatory This method must be implemented.
MethodgetHourInitial
Description

Gets the initial for "hours."

Returnosid.locale.DisplayText the initial
Compliancemandatory This method must be implemented.
MethodhasVariableHours
Description

Tests if this time system has a variable number of hours in a day.

Returnboolean true if the number of hours per day varies, false if the number of hours per day is constant
Compliancemandatory This method must be implemented.
MethodgetNumHours
Description

Gets the number of hours in a day. For a variable hour time system, the number of hours defined is returned. If there are no "hours" in this time system then this value may be zero.

Returncardinal the number of hours
Compliancemandatory This method must be implemented.
MethodgetNumHoursForDay
Description

Gets the number of hours for a given day.

Parametersintegeryear a year
cardinalmonth a DateTime month code
cardinalday a DateTime day code
Returncardinal the number of hours
ErrorsILLEGAL_STATE year is greater than CalendarInfo.getLastYearBeforeCommonEra() and less then CalendarInfo.getFirstYearInCommonEra(), or month is greater than or equal to CalendarInfo.getNumMonthsForYear(year), or day is greater than or equal to CalendarInfo.getDaysInMonth(year, month)
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetMinuteName
Description

Gets the display name for "minutes."

Returnosid.locale.DisplayText the name
Compliancemandatory This method must be implemented.
MethodgetMinuteAbbrev
Description

Gets the abbreviation for "minutes."

Returnosid.locale.DisplayText the abbreviation
Compliancemandatory This method must be implemented.
MethodgetMinuteInitial
Description

Gets the initial for "minutes."

Returnosid.locale.DisplayText the initial
Compliancemandatory This method must be implemented.
MethodhasVariableMinutes
Description

Tests if this time system has a variable number of minutes in an hour.

Returnboolean true if the number of minutes per hour varies, false if the number of minutes per hour is constant
Compliancemandatory This method must be implemented.
MethodgetNumMinutes
Description

Gets the number of minutes in an hour. For a variable minute time system, the number of minutes defined is returned. If there are no "minutes" in this time system then this value may be zero. If there are no "hours" defined then the number of minutes is the number of minutes in a day.

Returncardinal the number of minutes
Compliancemandatory This method must be implemented.
MethodgetNumMinutesForHour
Description

Gets the minutes for a given hour.

Parametersintegeryear a year
cardinalmonth a DateTime month code
cardinalday a DateTime day code
cardinalhour an hour
Returncardinal the number of minutes
ErrorsILLEGAL_STATE year is greater than CalendarInfo.getLastYearBeforeCommonEra() and less then CalendarInfo.getFirstYearInCommonEra(), or month is greater than or equal to CalendarInfo.getNumMonthsForYear(year), or day is greater than or equal to CalendarInfo.getDaysInMonth(year, month), or hour is greater than or equal to getNumHoursInDay(year, month, day)
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSecondName
Description

Gets the display name for "seconds."

Returnosid.locale.DisplayText the name
Compliancemandatory This method must be implemented.
MethodgetSecondAbbrev
Description

Gets the abbreviation for "seconds."

Returnosid.locale.DisplayText the abbreviation
Compliancemandatory This method must be implemented.
MethodgetSecondInitial
Description

Gets the initial for "seconds."

Returnosid.locale.DisplayText the initial
Compliancemandatory This method must be implemented.
MethodhasVariableSeconds
Description

Tests if this time system has a variable number of seconds in a minute.

Returnboolean true if the number of seconds per minute varies, false if the number of seconds per minute is constant
Compliancemandatory This method must be implemented.
MethodgetNumSeconds
Description

Gets the number of seconds in a minute. For a variable second time system, the number of seconds defined is returned. If there are no "seconds" in this time system then this value may be zero. If there are no "minutes" defined then the number of seconds is the number of seconds in an hour.

Returncardinal the number of seconds
Compliancemandatory This method must be implemented.
MethodgetNumSecondsForMinute
Description

Gets the seconds for a given minute.

Parametersintegeryear a year
cardinalmonth a DateTime month code
cardinalday a DateTime day code
cardinalhour an hour
cardinalminute a minute
Returncardinal the number of seconds
ErrorsILLEGAL_STATE year is greater than getLastYearBeforeCommonEra() and less then getFirstYearInCommonEra(), or month is greater than or equal to CalendarInfo.getNumMonthsForYear(year), or day is greater than or equal to CalendarInfo.getDaysInMonth(year, month), or hour is greater than or equal to getNumHoursInDay(year, month, day), or minute is greater than or equal to getNumMinutesInhour(year, month, day, hour)
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.