2000 2013 Ericsson AB, All Rights Reserved The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Ericsson AB. CosTime_TimeService Niclas Eklund Niclas Eklund Niclas Eklund 2000-02-01 1.0
CosTime_TimeService This module implements the OMG CosTime::TimeService interface.

To get access to the record definitions for the structures use:

-include_lib("cosTime/include/*.hrl").

universal_time(TimeService) -> Reply Return the current time and the Inaccuracy given when starting this application in a UTO TimeService = #objref Reply = UTO | {'EXCEPTION", #'TimerService_TimeUnavailable'{}} UTO = #objref

This operation returns the current time and the Inaccuracy given when starting this application in a UTO. The time base is 15 october 1582 00:00. Comparing two time objects which use different time base is, by obvious reasons, pointless.

new_universal_time(TimeService, Time, Inaccuracy, Tdf) -> UTO Create a new UTO object representing the time parameters given TimeService = UTO = #objref Time = Inaccuracy = ulonglong() Tdf = short()

This operation creates a new UTO object representing the time parameters given. This is the only way to create a UTO with an arbitrary time from its components. This is useful when using the Timer Event Service.

uto_from_utc(TimeService, Utc) -> UTO Create a UTO representing the given time in Utc form TimeService = UTO = #objref Utc = #'TimeBase_UtcT'{time, inacclo, inacchi, tdf} time = ulonglong() inacclo = ulong() inacchi = ushort() tdf = short()

This operation is used to create a UTO given a time in the Utc form.

new_interval(TimeService, Lower, Upper) -> TIO Create a new TIO object representing the input parameters TimeService = TIO = #objref Lower = Upper = ulonglong()

This operation is used to create a new TIO object, representing the input parameters. If Lower is greater than Upper BAD_PARAM is raised.