Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

shevek_relative_time(3) [debian man page]

shevek::relative_time(3)				     Library Functions Manual					  shevek::relative_time(3)

NAME
shevek::relative_time - Time interval. SYNOPSIS
#include <time.hh> Public Member Functions relative_time () The default constructor creates an interval of 0. relative_time (timetype days, int hours, int minutes, int seconds, int nanoseconds=0) Construct an interval of a given size. relative_time (timetype seconds, unsigned nanoseconds) Fast constructor. relative_time operator+ (relative_time that) const Add two intervals. absolute_time operator+ (absolute_time that) const Add an interval to a moment. relative_time operator- (relative_time that) const Subtract two intervals. relative_time operator- () const Negate an interval. relative_time operator* (float c) const Scale an interval. relative_time operator/ (float c) const Scale an interval. relative_time operator% (relative_time that) const Modulo operator for two intervals. double operator/ (relative_time that) const Division of two intervals. relative_time & operator+= (relative_time that) Add an interval. relative_time & operator-= (relative_time that) Subtract an interval. relative_time & operator*= (float c) Scale the interval. relative_time & operator/= (float c) Scale the interval. relative_time & operator%= (relative_time that) Modulo. bool operator< (relative_time that) const Compare with another interval. bool operator> (relative_time that) const Compare with another interval. bool operator<= (relative_time that) const Compare with another interval. bool operator>= (relative_time that) const Compare with another interval. bool operator== (relative_time that) const bool operator!= (relative_time that) const unsigned nanoseconds () const Number of nanoseconds. unsigned seconds () const Number of seconds. unsigned minutes () const Number of minutes. unsigned hours () const Number of hours. unsigned days () const Number of days. bool isnegative () const Is this a negative interval? timetype total () const Total number of seconds, as encoded. Static Public Member Functions static void set_digits (unsigned num) Set number of digits to use when printing (for fractions of seconds). static unsigned get_digits () Get the number of digits that is used when printing. Friends std::ostream & operator<< (std::ostream &s, relative_time t) Write the interval to a std::ostream. Detailed Description Time interval. Constructor &; Destructor Documentation shevek::relative_time::relative_time (timetypeseconds, unsignednanoseconds) Fast constructor. This directly fills the members and is therefore slightly faster than the other constructors. However, the others aren't really slow either. Member Function Documentation bool shevek::relative_time::operator!= (relative_timethat) const Compare two intervals. Note that this is rarely a useful operation, because minor errors may be introduced by computations. bool shevek::relative_time::operator== (relative_timethat) const Compare two intervals. Note that this is rarely a useful operation, because minor errors may be introduced by computations. Author Generated automatically by Doxygen for libshevek from the source code. libshevek Fri May 11 2012 shevek::relative_time(3)

Check Out this Related Man Page

shevek::rostring(3)					     Library Functions Manual					       shevek::rostring(3)

NAME
shevek::rostring - shevek::rostring is identical to shevek::ostring, but it uses std::string instead of Glib::ustring. SYNOPSIS
#include <iostring.hh> Public Member Functions operator std::string () const Use the result as a string. std::string operator+ (std::string const &that) const Use the result as a string. rostring (std::string const &fmt) Create a string with a constant format. template<typename T1 > rostring (std::string const &fmt, T1 const &a1) Create a string with one argument. template<typename T1 , typename T2 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2) Create a string with two arguments. template<typename T1 , typename T2 , typename T3 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3) Create a string with three arguments. template<typename T1 , typename T2 , typename T3 , typename T4 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4) Create a string with four arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5) Create a string with five arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6) Create a string with six arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7) Create a string with seven arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7, T8 const &a8) Create a string with eight arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7, T8 const &a8, T9 const &a9) Create a string with nine arguments. Friends std::ostream & operator<< (std::ostream &s, rostring const &o) Send the result to an ostream. Detailed Description shevek::rostring is identical to shevek::ostring, but it uses std::string instead of Glib::ustring. Author Generated automatically by Doxygen for libshevek from the source code. libshevek Fri May 11 2012 shevek::rostring(3)
Man Page