Exemple #1
0
    def decoded_time(self, ulid):
        """Extract time in from `ulid`.

           The unit of the returned value is 1/self.t_factor seconds.
        """
        return dc_base32.decoded(dc_base32.normalized(ulid)[:self.t_length])
Exemple #2
0
    def decoded_time (self, ulid) :
        """Extract time in from `ulid`.

           The unit of the returned value is 1/self.t_factor seconds.
        """
        return dc_base32.decoded (dc_base32.normalized (ulid) [:self.t_length])
Exemple #3
0
 def decoded_random(self, ulid):
     """Extract random value from `ulid`."""
     return dc_base32.decoded(dc_base32.normalized(ulid)[self.t_length:])
Exemple #4
0
 def decoded_random (self, ulid) :
     """Extract random value from `ulid`."""
     return dc_base32.decoded (dc_base32.normalized (ulid) [self.t_length:])