示例#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
示例#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
示例#3
0
 def getSecondsPastEpoch(self):
     """Return the secondsPastEpoch as a long."""
     return timeStampPy._getSeconds(self.cppPvt)
示例#4
0
 def getSecondsPastEpoch(self):
     """Return the secondsPastEpoch as a long."""
     return timeStampPy._getSeconds(self.cppPvt)
示例#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
示例#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