OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.Duration
Implementsosid.OsidPrimitive
Used Byosid.Metadata
osid.OsidEffectuator
osid.assessment.AssessmentOffered
osid.assessment.AssessmentSection
osid.assessment.AssessmentTaken
osid.assessment.authoring.AssessmentPart
osid.billing.Item
osid.calendaring.DurationList
osid.calendaring.Event
osid.calendaring.OffsetEvent
show 31 more…
osid.calendaring.Schedule
osid.calendaring.ScheduleSlot
osid.configuration.Value
osid.control.Action
osid.control.Setting
osid.course.Activity
osid.course.ActivityUnit
osid.course.plan.Lesson
osid.course.plan.LessonAnchor
osid.course.program.Credential
osid.course.requisite.AssessmentRequirement
osid.course.requisite.AwardRequirement
osid.course.requisite.CourseRequirement
osid.course.requisite.CredentialRequirement
osid.course.requisite.ProgramRequirement
osid.course.syllabus.Docet
osid.locale.CalendarFormattingSession
osid.mapping.route.Route
osid.mapping.route.RouteProgress
osid.mapping.route.RouteSegment
osid.ordering.Price
osid.personnel.Position
osid.provisioning.Provision
osid.provisioning.Queue
osid.provisioning.Request
osid.provisioning.rules.BrokerProcessor
osid.recipe.Direction
osid.recipe.Recipe
osid.resourcing.Effort
osid.search.terms.DurationRangeTerm
osid.search.terms.DurationTerm
Description

The Duration a length of time.

While a DateTime represents a point on a calendar and a tick on a clock, a Duration represents a measurement. Each of these methods returns the total absolute measurement in the specified units.

MethodgetCalendarType
Description

Gets the calendar type.

Returnosid.type.Type the calendar type
Compliancemandatory This method must be implemented.
MethodgetTimeType
Description

Gets the time type.

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

Gets the number of aeons. An aeon is 1B years.

Returndecimal the number of aeons
Compliancemandatory This method must be implemented.
MethodgetEpochs
Description

Gets the number of epochs. An epoch is 1M years.

Returndecimal the number of epochs
Compliancemandatory This method must be implemented.
MethodgetMillennia
Description

Gets the number of millennia. A millennium is 1,000 years.

Returndecimal the number of millennia
Compliancemandatory This method must be implemented.
MethodgetCenturies
Description

Gets the number of centuries.

Returndecimal the number of centuries
Compliancemandatory This method must be implemented.
MethodgetScores
Description

Gets the number of scores.

Returndecimal the number of scores
Compliancemandatory This method must be implemented.
MethodgetBluemoons
Description

Gets the number of blue moons.

Returndecimal the number of blue moons
Compliancemandatory This method must be implemented.
MethodgetYears
Description

Gets the number of years.

Returndecimal the number of years
Compliancemandatory This method must be implemented.
MethodgetMonths
Description

Gets the number of months.

Returndecimal the number of months
Compliancemandatory This method must be implemented.
MethodgetWeeks
Description

Gets the number of weeks.

Returndecimal the number of weeks
Compliancemandatory This method must be implemented.
MethodgetDays
Description

Gets the number of days.

Returndecimal the number of days
Compliancemandatory This method must be implemented.
MethodgetHours
Description

Gets the number of hours.

Returndecimal the number of hours
Compliancemandatory This method must be implemented.
MethodgetMinutes
Description

Gets the number of minutes.

Returndecimal the number of minutes
Compliancemandatory This method must be implemented.
MethodgetSeconds
Description

Gets the number of seconds.

Returndecimal the number of seconds
Compliancemandatory This method must be implemented.
MethodgetMilliseconds
Description

Gets the number of milliseconds. A millisecond is one thousandth of a second.

Returndecimal the number of milliseconds
Compliancemandatory This method must be implemented.
MethodgetMicroseconds
Description

Gets the number of microseconds. A microsecond is one millionth of a second.

Returndecimal the number of micrseconds
Compliancemandatory This method must be implemented.
MethodgetNanoseconds
Description

Gets the number of nanoseconds. A nanosecond is one billionth of a second.

Returndecimal the number of nanoseconds
Compliancemandatory This method must be implemented.
MethodgetPicoseconds
Description

Gets the number of picoseconds. A picosecond is one trillionth of a second.

Returndecimal the number of picoseconds
Compliancemandatory This method must be implemented.
MethodgetFemtoseconds
Description

Gets the number of femtoseconds. A femtosecond is one quadrillionth of a second.

Returndecimal the number of femtoseconds
Compliancemandatory This method must be implemented.
MethodgetAttoseconds
Description

Gets the number of attoseconds. An attosecond is one quintillionth of a second.

Returndecimal the number of attoseconds
Compliancemandatory This method must be implemented.
MethodgetZeptoseconds
Description

Gets the number of zeptoseconds. A zeptosecond is one sextillionth of a second.

Returndecimal the number of zeptoseconds
Compliancemandatory This method must be implemented.
MethodgetYoctoseconds
Description

Gets the number of yoctoseconds. A yoctosecond is one septillionth of a second. This is getting quite small.

Returndecimal the number of yoctoseconds
Compliancemandatory This method must be implemented.
MethodgetXoxxoseconds
Description

Gets the number of xoxxoseconds. A xoxxosecond is one octillionth of a second. We're going with Rudy Rucker here.

Returndecimal the number of xoxxoseconds
Compliancemandatory This method must be implemented.
MethodgetWeebleseconds
Description

Gets the number of weebleseconds. A weeblesecond is one nonillionth of a second.

Returndecimal the number of weebleseconds
Compliancemandatory This method must be implemented.
MethodgetVatoseconds
Description

Gets the number of vatoseconds. A vatosecond is one decillionth of a second.

Returndecimal the number of vatoseconds
Compliancemandatory This method must be implemented.
MethodgetUndaseconds
Description

Gets the number of undaseconds. An undasecond is one unadecillionth of a second.

Returndecimal the number of undaseconds
Compliancemandatory This method must be implemented.
MethodgetPlanckSeconds
Description

Gets the number of Planck sseconds. A Planck is 10 quattuordecillionths of a second.

Returndecimal the number of planck seconds
Compliancemandatory This method must be implemented.
MethodgetGranularity
Description

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

Returnosid.calendaring.DateTimeResolution the time units
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.
MethoddefinesUncertainty
Description

Tests if uncertainty is defined for this time.

Returnboolean true if uncertainty is defined, false otherwise
Compliancemandatory This method must be implemented.
MethodgetUncertaintyUnits
Description

Gets the units of the uncertainty.

Returnosid.calendaring.DateTimeResolution units of the uncertainty
ErrorsILLEGAL_STATE definesUncertainty() is false
Compliancemandatory This method must be implemented.
MethodgetUncertaintyMinus
Description

Gets the uncertainty of this time in the negative direction.

Returncardinal the uncertainty under this value
ErrorsILLEGAL_STATE definesUncertainty() is false
Compliancemandatory This method must be implemented.
MethodgetUncertaintyPlus
Description

Gets the uncertainty of this time in the positive direction.

Returncardinal the uncertainty over this value
ErrorsILLEGAL_STATE definesUncertainty() is false
Compliancemandatory This method must be implemented.