Esempio n. 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])
Esempio n. 2
0
File: ulid.py Progetto: Tapyr/tapyr
    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])
Esempio n. 3
0
 def decoded_random(self, ulid):
     """Extract random value from `ulid`."""
     return dc_base32.decoded(dc_base32.normalized(ulid)[self.t_length:])
Esempio n. 4
0
File: ulid.py Progetto: Tapyr/tapyr
 def decoded_random (self, ulid) :
     """Extract random value from `ulid`."""
     return dc_base32.decoded (dc_base32.normalized (ulid) [self.t_length:])