Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 651

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{ost::Datetime Class Reference}
\label{classost_1_1_datetime}\index{ost::Datetime@{ost::Datetime}}
The {\bf Datetime}{\rm (p.\,\pageref{classost_1_1_datetime})} class uses a julian date representation of the current year, month, and day and a integer representation of the current time.Integer based time class.  


{\tt \#include $<$numbers.h$>$}

Inheritance diagram for ost::Datetime::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classost_1_1_datetime}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Datetime} (time\_\-t tm)
\item 
{\bf Datetime} (tm $\ast$dt)
\item 
{\bf Datetime} (const char $\ast$str, size\_\-t size=0)
\item 
{\bf Datetime} (int year, unsigned month, unsigned day, int hour, int minute, int second)
\item 
{\bf Datetime} ()
\item 
virtual {\bf $\sim$Datetime} ()
\item 
char $\ast$ {\bf get\-Datetime} (char $\ast$buffer) const 
\item 
time\_\-t {\bf get\-Datetime} (void) const 
\item 
bool {\bf is\-Valid} (void) const 
\item 
{\bf Datetime} \& {\bf operator=} (const {\bf Datetime} datetime)
\item 
{\bf Datetime} \& {\bf operator+=} (const {\bf Datetime} \&datetime)
\item 
{\bf Datetime} \& {\bf operator-=} (const {\bf Datetime} \&datetime)
\item 
{\bf Datetime} \& {\bf operator+=} (const {\bf Time} \&time)
\item 
{\bf Datetime} \& {\bf operator-=} (const {\bf Time} \&time)
\item 
int {\bf operator==} (const {\bf Datetime} \&)
\item 
int {\bf operator!=} (const {\bf Datetime} \&)
\item 
int {\bf operator$<$} (const {\bf Datetime} \&)
\item 
int {\bf operator$<$=} (const {\bf Datetime} \&)
\item 
int {\bf operator$>$} (const {\bf Datetime} \&)
\item 
int {\bf operator$>$=} (const {\bf Datetime} \&)
\item 
bool {\bf operator!} () const 
\item 
{\bf String} {\bf strftime} (const char $\ast$format) const 
\end{CompactItemize}


\subsection{Detailed Description}
The {\bf Datetime}{\rm (p.\,\pageref{classost_1_1_datetime})} class uses a julian date representation of the current year, month, and day and a integer representation of the current time.Integer based time class. 

This is then manipulated in several forms and may be exported as needed.

\begin{Desc}
\item[Author:]Marcelo Dalmas $<${\tt mad@brasmap.com.br}$>$ \end{Desc}




\subsection{Constructor \& Destructor Documentation}
\index{ost::Datetime@{ost::Datetime}!Datetime@{Datetime}}
\index{Datetime@{Datetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Datetime::Datetime (time\_\-t {\em tm})}\label{classost_1_1_datetime_4e8a08766eedd64762c9644cccb490ac}


\index{ost::Datetime@{ost::Datetime}!Datetime@{Datetime}}
\index{Datetime@{Datetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Datetime::Datetime (tm $\ast$ {\em dt})}\label{classost_1_1_datetime_ee753ac06bfffae97199890da937c367}


\index{ost::Datetime@{ost::Datetime}!Datetime@{Datetime}}
\index{Datetime@{Datetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Datetime::Datetime (const char $\ast$ {\em str}, size\_\-t {\em size} = {\tt 0})}\label{classost_1_1_datetime_d8a968ed1daad76c4a19043dad16e4f7}


\index{ost::Datetime@{ost::Datetime}!Datetime@{Datetime}}
\index{Datetime@{Datetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Datetime::Datetime (int {\em year}, unsigned {\em month}, unsigned {\em day}, int {\em hour}, int {\em minute}, int {\em second})}\label{classost_1_1_datetime_9e25f3c255c1f8b8d52330f1400c126b}


\index{ost::Datetime@{ost::Datetime}!Datetime@{Datetime}}
\index{Datetime@{Datetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Datetime::Datetime ()}\label{classost_1_1_datetime_96ff943ea42fce2ab0541cce9f170dfd}


\index{ost::Datetime@{ost::Datetime}!~Datetime@{$\sim$Datetime}}
\index{~Datetime@{$\sim$Datetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual ost::Datetime::$\sim$Datetime ()\hspace{0.3cm}{\tt  [virtual]}}\label{classost_1_1_datetime_f9791264fc2835b68a02c5cf05c0adb9}




\subsection{Member Function Documentation}
\index{ost::Datetime@{ost::Datetime}!getDatetime@{getDatetime}}
\index{getDatetime@{getDatetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}time\_\-t ost::Datetime::get\-Datetime (void) const}\label{classost_1_1_datetime_444a01e2b8e9a7243eee3981912fec79}


\index{ost::Datetime@{ost::Datetime}!getDatetime@{getDatetime}}
\index{getDatetime@{getDatetime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ ost::Datetime::get\-Datetime (char $\ast$ {\em buffer}) const}\label{classost_1_1_datetime_387ede8063cf6c56984ae8908abd8a57}


\index{ost::Datetime@{ost::Datetime}!isValid@{isValid}}
\index{isValid@{isValid}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool ost::Datetime::is\-Valid (void) const}\label{classost_1_1_datetime_9ad9af38b4049e3b8f5a3198d3d33ae0}




Reimplemented from {\bf ost::Date} {\rm (p.\,\pageref{classost_1_1_date_794d1de62e93430141f3b12635c4f814})}.\index{ost::Datetime@{ost::Datetime}!operator"!@{operator"!}}
\index{operator"!@{operator"!}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool ost::Datetime::operator! () const}\label{classost_1_1_datetime_17965abf48026f1edac7a52d6318cc52}




Reimplemented from {\bf ost::Date} {\rm (p.\,\pageref{classost_1_1_date_3c7f3a81526b2d44913c0ad0d3f3ed6d})}.\index{ost::Datetime@{ost::Datetime}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Datetime::operator!= (const {\bf Datetime} \&)}\label{classost_1_1_datetime_f07e73c6cb670cb59df071aaf82890f2}


\index{ost::Datetime@{ost::Datetime}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Datetime}\& ost::Datetime::operator+= (const {\bf Time} \& {\em time})}\label{classost_1_1_datetime_0df1f8703ace6937b189031ceaf0dece}


\index{ost::Datetime@{ost::Datetime}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Datetime}\& ost::Datetime::operator+= (const {\bf Datetime} \& {\em datetime})}\label{classost_1_1_datetime_b7f5f1fc90da9d0fb32adadd34c9954b}


\index{ost::Datetime@{ost::Datetime}!operator-=@{operator-=}}
\index{operator-=@{operator-=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Datetime}\& ost::Datetime::operator-= (const {\bf Time} \& {\em time})}\label{classost_1_1_datetime_9735593c8203880d9b4592b72fa5c83b}


\index{ost::Datetime@{ost::Datetime}!operator-=@{operator-=}}
\index{operator-=@{operator-=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Datetime}\& ost::Datetime::operator-= (const {\bf Datetime} \& {\em datetime})}\label{classost_1_1_datetime_c6ae33a6954fb0e8fbd14a41b6137cf6}


\index{ost::Datetime@{ost::Datetime}!operator<@{operator$<$}}
\index{operator<@{operator$<$}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Datetime::operator$<$ (const {\bf Datetime} \&)}\label{classost_1_1_datetime_d7470e1a33d6607059b26bf2665500dc}


\index{ost::Datetime@{ost::Datetime}!operator<=@{operator$<$=}}
\index{operator<=@{operator$<$=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Datetime::operator$<$= (const {\bf Datetime} \&)}\label{classost_1_1_datetime_d7355c134b347408306df44aaa2877aa}


\index{ost::Datetime@{ost::Datetime}!operator=@{operator=}}
\index{operator=@{operator=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Datetime}\& ost::Datetime::operator= (const {\bf Datetime} {\em datetime})}\label{classost_1_1_datetime_3b0d008e1e9c4bc780969f48d6d35b2f}


\index{ost::Datetime@{ost::Datetime}!operator==@{operator==}}
\index{operator==@{operator==}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Datetime::operator== (const {\bf Datetime} \&)}\label{classost_1_1_datetime_d1ce0f2c6708c561be7fa56db311e8a0}


\index{ost::Datetime@{ost::Datetime}!operator>@{operator$>$}}
\index{operator>@{operator$>$}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Datetime::operator$>$ (const {\bf Datetime} \&)}\label{classost_1_1_datetime_e12f70e2848037bc83ec7da0533050b6}


\index{ost::Datetime@{ost::Datetime}!operator>=@{operator$>$=}}
\index{operator>=@{operator$>$=}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Datetime::operator$>$= (const {\bf Datetime} \&)}\label{classost_1_1_datetime_e7828cd55b58ebc614e369f735a5c72b}


\index{ost::Datetime@{ost::Datetime}!strftime@{strftime}}
\index{strftime@{strftime}!ost::Datetime@{ost::Datetime}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf String} ost::Datetime::strftime (const char $\ast$ {\em format}) const}\label{classost_1_1_datetime_0b08913afe8e67c64ec8a0b6b63bb95d}




The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
{\bf numbers.h}\end{CompactItemize}