boost.png (6897 bytes) Home Libraries People FAQ More

PrevUpHomeNext

Class template second_clock

boost::date_time::second_clock — A clock providing time level services based on C time_t capabilities.

Synopsis

template<typename time_type> 
class second_clock {
public:
  // types
  typedef time_type::date_type          date_type;         
  typedef time_type::time_duration_type time_duration_type;

  // public static functions
  time_type local_time() ;
  time_type universal_time() ;
  template<typename time_zone_type> 
    time_type local_time(boost::shared_ptr< time_zone_type >) ;

  // private static functions
  time_type create_time(::std::tm *) ;
};

Description

This clock provides resolution to the 1 second level

second_clock public static functions

  1. time_type local_time() ;
  2. time_type universal_time() ;
  3. template<typename time_zone_type> 
      time_type local_time(boost::shared_ptr< time_zone_type > tz_ptr) ;

second_clock private static functions

  1. time_type create_time(::std::tm * current) ;
Copyright © 2001-2005 CrystalClear Software, Inc

PrevUpHomeNext