Skip to content

timestamp tsr getgentimestr

Matthias Görges edited this page Jul 13, 2015 · 1 revision

timestamp-tsr-getgentimestr returns the timestamp response generation time string.

Parameter Description
tsr Timestamp response

Example

Example 1: Obtain a trusted timestamp for a file containing the string "LambdaNative" and display the trusted timestamp time in two formats as well as its accuracy.

> (define filename "LNtest")
> (u8vector->file (u8vector 76 97 109 98 100 97 78 97 116 105 118 101) filename)
> (define tsr (timestamp-gettimestamp filename))
> (timestamp-tsr-getgentimestr tsr)
"20150713002428Z"
> (timestamp-tsr-getepoch tsr)
1436772304.
> (timestamp-tsr-getaccuracy tsr)
0.
Clone this wiki locally