Beispiel #1
0
 def toSeconds(self):
     """Return a float that is the number of seconds past the Epoch."""
     value = float(timeStampPy._getSeconds(self.cppPvt))
     nano = float(timeStampPy._getNano(self.cppPvt))
     value += nano / 1e9
     return value
Beispiel #2
0
    def getEpicsSecondsPastEpoch(self):
        """Return the seconds since the EPICS Epoch as a long.

        The EPICS Epoch is 1990.1.1 00:00:00 UTC."""
        return timeStampPy._getSeconds(
            self.cppPvt) - TimeStamp.posixEpochAtEpicsEpoch
Beispiel #3
0
 def getSecondsPastEpoch(self):
     """Return the secondsPastEpoch as a long."""
     return timeStampPy._getSeconds(self.cppPvt)
Beispiel #4
0
 def getSecondsPastEpoch(self):
     """Return the secondsPastEpoch as a long."""
     return timeStampPy._getSeconds(self.cppPvt)
Beispiel #5
0
 def toSeconds(self):
     """Return a float that is the number of seconds past the Epoch."""
     value = float(timeStampPy._getSeconds(self.cppPvt))
     nano = float(timeStampPy._getNano(self.cppPvt))
     value += nano / 1e9
     return value
Beispiel #6
0
    def getEpicsSecondsPastEpoch(self):
        """Return the seconds since the EPICS Epoch as a long.

        The EPICS Epoch is 1990.1.1 00:00:00 UTC."""
        return timeStampPy._getSeconds(self.cppPvt) - TimeStamp.posixEpochAtEpicsEpoch