CosTime::TimeService Interface Reference

The time service is used to create instances of TIOs and UTOs from components, and to determine the current time. More...

import "CosTime.idl";

List of all members.

Public Member Functions

UTO universal_time () raises (TimeUnavailable)
 Determine the current time.
UTO secure_universal_time () raises (TimeUnavailable)
 Determine the current time where the time must be secure.
UTO new_universal_time (in TimeBase::TimeT time, in TimeBase::InaccuracyT inaccuracy, in TimeBase::TdfT tdf)
 Create a new UTO instance from its components.
UTO uto_from_utc (in TimeBase::UtcT utc)
 Create a new UTO instance.
TIO new_interval (in TimeBase::TimeT lower, in TimeBase::TimeT upper)
 Create a new TIO instance.


Detailed Description

The time service is used to create instances of TIOs and UTOs from components, and to determine the current time.


Member Function Documentation

TIO CosTime::TimeService::new_interval ( in TimeBase::TimeT  lower,
in TimeBase::TimeT  upper 
)

Create a new TIO instance.

Returns:
A new TIO as specified. lower - the lower bound of the interval. upper - the upper bound of the interval.

UTO CosTime::TimeService::new_universal_time ( in TimeBase::TimeT  time,
in TimeBase::InaccuracyT  inaccuracy,
in TimeBase::TdfT  tdf 
)

Create a new UTO instance from its components.

Returns:
A new UTO as specified. time - the time to be stored in the UTO. inaccuracy - the error to be stored with this time. tdf - the timezone to be stored in the UTO.

UTO CosTime::TimeService::secure_universal_time (  )  raises (TimeUnavailable)

Determine the current time where the time must be secure.

Returns:
A UTO representing the current time, an estimate of the accuracy of this time, and the local time zone. TimeUnavailable if the time cannot be determined securely.

UTO CosTime::TimeService::universal_time (  )  raises (TimeUnavailable)

Determine the current time.

Returns:
A UTO representing the current time, an estimate of the accuracy of this time, and the local time zone. TimeUnavailable if for some reason the time cannot be obtained.

UTO CosTime::TimeService::uto_from_utc ( in TimeBase::UtcT  utc  ) 

Create a new UTO instance.

Returns:
A new UTO as specified. utc - the data to be stored in the UTO.