Public Member Functions | Private Attributes

octave_time Class Reference

#include "oct-time.h"

Collaboration diagram for octave_time:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 octave_time (void)
 octave_time (time_t t)
 octave_time (double d)
 octave_time (const octave_base_tm &tm)
 octave_time (time_t t, int us)
 octave_time (const octave_time &ot)
 ~octave_time (void)
std::string ctime (void) const
double double_value (void) const
octave_timeoperator= (const octave_time &ot)
void stamp (void)
time_t unix_time (void) const
int usec (void) const

Private Attributes

time_t ot_unix_time
int ot_usec

Detailed Description

Definition at line 33 of file oct-time.h.


Constructor & Destructor Documentation

octave_time::octave_time ( void   )  [inline]

Definition at line 39 of file oct-time.h.

octave_time::octave_time ( time_t  t  )  [inline]

Definition at line 42 of file oct-time.h.

octave_time::octave_time ( time_t  t,
int  us 
) [inline]

Definition at line 45 of file oct-time.h.

octave_time::octave_time ( double  d  )  [inline]

Definition at line 67 of file oct-time.h.

octave_time::octave_time ( const octave_base_tm tm  ) 
octave_time::octave_time ( const octave_time ot  )  [inline]

Definition at line 76 of file oct-time.h.

octave_time::~octave_time ( void   )  [inline]

Definition at line 90 of file oct-time.h.


Member Function Documentation

std::string octave_time::ctime ( void   )  const

Definition at line 77 of file oct-time.cc.

double octave_time::double_value ( void   )  const [inline]

Definition at line 94 of file oct-time.h.

Referenced by DEFUN(), and profile_data_accumulator::query_time().

octave_time& octave_time::operator= ( const octave_time ot  )  [inline]

Definition at line 79 of file oct-time.h.

References ot_unix_time, and ot_usec.

void octave_time::stamp ( void   ) 

Definition at line 83 of file oct-time.cc.

References ot_unix_time, and ot_usec.

Referenced by interactive_input(), octave_change_to_directory(), and rehash_internal().

time_t octave_time::unix_time ( void   )  const [inline]
int octave_time::usec ( void   )  const [inline]

Member Data Documentation

time_t octave_time::ot_unix_time [private]

Definition at line 105 of file oct-time.h.

Referenced by octave_time(), operator=(), and stamp().

Definition at line 108 of file oct-time.h.

Referenced by octave_time(), operator=(), and stamp().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines