OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.Time
Implementsosid.OsidPrimitive
Used Byosid.Metadata
osid.calendaring.ScheduleSlot
osid.calendaring.TimeList
osid.configuration.Value
osid.locale.CalendarFormattingSession
osid.search.terms.TimeRangeTerm
osid.search.terms.TimeTerm
Description

The Time interface defines a time.

Any element more fine grained than the specified granularity is meaningless.

MethodgetTimeType
Description

Gets the time type.

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

Gets the hour of the day 0-23.

Returncardinal the hour of the day
Compliancemandatory This method must be implemented.
MethodgetMinute
Description

Gets the minute of the hour 0-59.

Returncardinal the minute of the hour
Compliancemandatory This method must be implemented.
MethodgetSecond
Description

Gets the second of the minute 0-59.

Returncardinal the second of the minute
Compliancemandatory This method must be implemented.
MethodgetMilliseconds
Description

Gets the number of milliseconds in this second 0-999. A millisecond is one thousandth (1e-3) of a second.

Returncardinal the milliseconds of the second
Compliancemandatory This method must be implemented.
MethodgetMicroseconds
Description

Gets the number of microseconds of the second 0-999. A microsecond is one millionth (1e-6) of a second.

Returncardinal the micrseconds of the millisecond
Compliancemandatory This method must be implemented.
MethodgetNanoseconds
Description

Gets the number of nanoseconds of the microsecond 0-999. A nanosecond is one billionth (1e-9) of a second.

Returncardinal the nanoseconds of the microsecond
Compliancemandatory This method must be implemented.
MethodgetPicoseconds
Description

Gets the number of picoseconds of the nanosecond 0-999. A picosecond is one trillionth (1e-12) of a second.

Returncardinal the picoseconds of the nanosecond
Compliancemandatory This method must be implemented.
MethodgetFemtoseconds
Description

Gets the number of femtoseconds of the picosecond 0-999. A femtosecond is one quadrillionth (1e-15) of a second.

Returncardinal the femtoseconds of the picosecond
Compliancemandatory This method must be implemented.
MethodgetAttoseconds
Description

Gets the number of attoseconds of the femtoseconds 0-999. An attosecond is one quintillionth (1e-18) of a second.

Returncardinal the attoseconds of the femtosecond
Compliancemandatory This method must be implemented.
MethodgetZeptoseconds
Description

Gets the number of zeptoseconds of the attosecond 0-999. A zeptosecond is one sextillionth (1e-21) of a second.

Returncardinal the zeptoseconds of the attosecond
Compliancemandatory This method must be implemented.
MethodgetYoctoseconds
Description

Gets the number of yoctoseconds of the picosecond 0-999. A yoctosecond is one septillionth (1e-24) of a second. This is getting quite small.

Returncardinal the yoctoseconds of the picosecond
Compliancemandatory This method must be implemented.
MethodgetRontoseconds
Description

Gets the number of rontoseconds of the yoctosecond 0-999. A rontosecond is one octillionth (1e-27) of a second.

Returncardinal the rontoseconds of the yoctosecond
Compliancemandatory This method must be implemented.
MethodgetQuectoseconds
Description

Gets the number of quectoseconds of the rontosecond 0-999. A quectosecond is one nonillionth (1e-30) of a second.

Returncardinal the quectoseconds of the rontosecond
Compliancemandatory This method must be implemented.
MethodgetMilliquectoseconds
Description

Gets the number of milliquectoseconds of the quectosecond 0-999. A milliquectosecond is one decillionth (1e-33) of a second.

Returncardinal the milliquectoseconds of the quectosecond
Compliancemandatory This method must be implemented.
MethodgetMicroquectoseconds
Description

Gets the number of microquectoseconds of the milliquectosecond 0-999. A microquectosecond is one undecillionth (1e-36) of a second.

Returncardinal the microquectoseconds of the milliquectosecond
Compliancemandatory This method must be implemented.
MethodgetPlanckseconds
Description

Gets the number of planckseconds of the microquectoseconds. A plancksecond is 53.91247 quattuordecillionths (5.391247e-44) of a second.

Returncardinal the planckseconds of the microquectosecond
Compliancemandatory This method must be implemented.
MethodgetGranularity
Description

Gets the granularity of this time. The granularity indicates the resolution of the clock (the tick). More precision than what is specified in this method cannot be inferred from the available data.

Returnosid.calendaring.DateTimeResolution granularity
Compliancemandatory This method must be implemented.
MethodgetGranularityMultiplier
Description

If the granularity of the time equals getGranularity(), then the multiplier is 1. This method may return a different number when the granularity differs from one of the defined resolutions.

Returncardinal granularity multiplier
Compliancemandatory This method must be implemented.