Wt::Time Class Reference

A time class to escape SDL's 2^32 ms epoch limitations. More...

#include <datetime.h>

List of all members.

Public Member Functions

 Time ()
 Time (int h, int m, int s=0, int ms=0)
bool isNull () const
bool isValid () const
int hour () const
int minute () const
int second () const
int msec () const
 operator std::string () const
std::string toString () const
bool setHMS (int h, int m, int s, int ms=0)
Time addSecs (int nsecs) const
int secsTo (const Time &t) const
Time addMSecs (int ms) const
int msecsTo (const Time &t) const
bool operator== (const Time &t) const
bool operator!= (const Time &t) const
bool operator< (const Time &t) const
bool operator<= (const Time &t) const
bool operator> (const Time &t) const
bool operator>= (const Time &t) const
void start ()
int restart ()
int elapsed () const

Static Public Member Functions

static Time currentTime ()
static Time fromString (const std::string &s)
static bool isValid (int h, int m, int s, int ms=0)


Detailed Description

A time class to escape SDL's 2^32 ms epoch limitations.


Constructor & Destructor Documentation

Wt::Time::Time (  ) 

Wt::Time::Time ( int  h,
int  m,
int  s = 0,
int  ms = 0 
)


Member Function Documentation

Time Wt::Time::addMSecs ( int  ms  )  const

Time Wt::Time::addSecs ( int  nsecs  )  const

Time Wt::Time::currentTime (  )  [static]

int Wt::Time::elapsed (  )  const

Time Wt::Time::fromString ( const std::string &  s  )  [static]

int Wt::Time::hour (  )  const [inline]

bool Wt::Time::isNull (  )  const

bool Wt::Time::isValid ( int  h,
int  m,
int  s,
int  ms = 0 
) [static]

bool Wt::Time::isValid (  )  const

int Wt::Time::minute (  )  const [inline]

int Wt::Time::msec (  )  const [inline]

int Wt::Time::msecsTo ( const Time t  )  const

Wt::Time::operator std::string (  )  const

bool Wt::Time::operator!= ( const Time t  )  const

bool Wt::Time::operator< ( const Time t  )  const

bool Wt::Time::operator<= ( const Time t  )  const

bool Wt::Time::operator== ( const Time t  )  const

bool Wt::Time::operator> ( const Time t  )  const

bool Wt::Time::operator>= ( const Time t  )  const

int Wt::Time::restart (  ) 

int Wt::Time::second (  )  const [inline]

int Wt::Time::secsTo ( const Time t  )  const

bool Wt::Time::setHMS ( int  h,
int  m,
int  s,
int  ms = 0 
)

void Wt::Time::start (  ) 

std::string Wt::Time::toString (  )  const


The documentation for this class was generated from the following files:

Generated Fri Jul 28 19:22:38 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.