/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Properties | Private Member Functions | Private Attributes
DybPython::db::Stat Class Reference

List of all members.

Public Member Functions

def __init__

Properties

 mtime = property(lambda self:self._stat[stat.ST_MTIME])
 atime = property(lambda self:self._stat[stat.ST_ATIME])
 ctime = property(lambda self:self._stat[stat.ST_CTIME])
 size = property(lambda self:self._stat[stat.ST_SIZE])
 mode = property(lambda self:self._stat[stat.ST_MODE])
 isdir = property(lambda self:stat.S_ISDIR(self.mode))
 mdate = property(lambda self:datetime.datetime.fromtimestamp(self.mtime))
 age = property(_age )

Private Member Functions

def _age

Private Attributes

 _stat

Detailed Description

Definition at line 173 of file db.py.


Constructor & Destructor Documentation

def DybPython::db::Stat::__init__ (   self,
  arg 
)

Definition at line 187 of file db.py.

00188                            :
00189         super(self.__class__,self).__init__(arg)
00190         self._stat = os.stat(self)
00191 
00192 


Member Function Documentation

def DybPython::db::Stat::_age (   self) [private]

Definition at line 182 of file db.py.

00183                   :
00184         td = datetime.datetime.now() - self.mdate
        return float( td.days * 3600 * 24 + td.seconds ) / ( 3600 * 24 )

Member Data Documentation

Definition at line 187 of file db.py.


Property Documentation

DybPython::db::Stat::mtime = property(lambda self:self._stat[stat.ST_MTIME]) [static]

Definition at line 174 of file db.py.

DybPython::db::Stat::atime = property(lambda self:self._stat[stat.ST_ATIME]) [static]

Definition at line 175 of file db.py.

DybPython::db::Stat::ctime = property(lambda self:self._stat[stat.ST_CTIME]) [static]

Definition at line 176 of file db.py.

DybPython::db::Stat::size = property(lambda self:self._stat[stat.ST_SIZE]) [static]

Definition at line 177 of file db.py.

DybPython::db::Stat::mode = property(lambda self:self._stat[stat.ST_MODE]) [static]

Definition at line 178 of file db.py.

DybPython::db::Stat::isdir = property(lambda self:stat.S_ISDIR(self.mode)) [static]

Definition at line 179 of file db.py.

DybPython::db::Stat::mdate = property(lambda self:datetime.datetime.fromtimestamp(self.mtime)) [static]

Definition at line 180 of file db.py.

DybPython::db::Stat::age = property(_age ) [static]

Definition at line 185 of file db.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:40 for DybPython by doxygen 1.7.4