Handbook
Glossary
timestamp>count* ( timestamp secs/count -- count )
Time-Based One-Time Passwords
Prev:
totp ( key -- string )
Next:
totp* ( count key hash -- n )
Vocabulary
totp
Inputs
timestamp
a
timestamp
secs/count
a
number
Outputs
count
a
byte-array
Word description
Return the number of
secs/count
-second intervals between the Unix time and the
timestamp
as an 8-byte
byte-array
.
See also
timestamp>count
Definition
USING:
calendar
endian
kernel
math
;
IN:
totp
:
timestamp>count*
( timestamp secs/count -- count )
[
timestamp>unix-time
]
dip
/i
8
>be
;
inline