com.r3corda.core.testing / TransactionDSL / timestamp

# timestamp

`fun timestamp(time: Instant, tolerance: Duration = 30.seconds, notary: PublicKey = DUMMY_NOTARY.owningKey): Unit`

Adds a timestamp command to the transaction.

### Parameters

`time` - The Instant of the TimestampCommand.
`tolerance` - The tolerance of the TimestampCommand.
`notary` - The notary to sign the command.
`fun timestamp(data: TimestampCommand, notary: PublicKey = DUMMY_NOTARY.owningKey): Unit`

Adds a timestamp command to the transaction.

### Parameters

`data` - The TimestampCommand.
`notary` - The notary to sign the command.