[Up: Time Service]
[Previous: Types] [Next: Interface UTO]

# Interface TimeService

The TimeService is the factory object for TIOs and UTOs. The actual time from the system is used, so the accuracy of the service is based on your systems clock. Use a precision source like a DCF77 receiver if you have high demand on precision. The actual routines to get the time from the system are containe in `TimeService_help.cc`, so you may easily use a better way than depending on time.h.

- `UTO universal_time();`
  returns the actual time of the TimeServic in a UTO

- `UTO secure_universal_time();`
  same as above, additional restrictions, see Appendix A of the specs, currently disabled on compile time

- `UTO new_universal_time(inTimeBase::TimeT,
  in TimeBase::InaccuracyT, in TimeBase::TdfT);`
  creates a new UTO filled with the arguments

- `UTO utop_from_utc(in TimeBase::UtcT);`
  same as above, but with UtcT as argument

- `TIO new_intervall(in TimeBase::TimeT,
  in TimeBase::TimeT);`
  creates a new TIO with lower and upper set from arguments

If you provide a hint to a MICO naming service when starting the service, the time service exports its reference. Otherwise you may use the stringified object reference.