BoB robotics
The Brains on Board robotics library
units::time Namespace Reference

namespace for unit types and containers representing time values More...

Typedefs

Units (full names plural)
typedef unit< std::ratio< 1 >, units::category::time_unitseconds
 
Units (full names singular)
typedef seconds second
 
Units (abbreviated)
typedef seconds s
 
Unit Containers
typedef unit_t< secondsecond_t
 
typedef unit_t< minute > minute_t
 
typedef unit_t< hour > hour_t
 
typedef unit_t< day > day_t
 
typedef unit_t< week > week_t
 
typedef unit_t< year > year_t
 
typedef unit_t< julian_year > julian_year_t
 
typedef unit_t< gregorian_year > gregorian_year_t
 

Functions

std::ostream & operator<< (std::ostream &os, const second_t &obj)
 
std::string to_string (const second_t &obj)
 
std::ostream & operator<< (std::ostream &os, const minute_t &obj)
 
std::string to_string (const minute_t &obj)
 
std::ostream & operator<< (std::ostream &os, const hour_t &obj)
 
std::string to_string (const hour_t &obj)
 
std::ostream & operator<< (std::ostream &os, const day_t &obj)
 
std::string to_string (const day_t &obj)
 
std::ostream & operator<< (std::ostream &os, const week_t &obj)
 
std::string to_string (const week_t &obj)
 
std::ostream & operator<< (std::ostream &os, const year_t &obj)
 
std::string to_string (const year_t &obj)
 
std::ostream & operator<< (std::ostream &os, const julian_year_t &obj)
 
std::string to_string (const julian_year_t &obj)
 
std::ostream & operator<< (std::ostream &os, const gregorian_year_t &obj)
 
std::string to_string (const gregorian_year_t &obj)
 

Detailed Description

namespace for unit types and containers representing time values

The SI unit for time is seconds, and the corresponding base_unit category is time_unit.

See also
See unit_t for more information on unit type containers.