duration

fun duration(duration: Long, unit: TimeUnit): <Error class: unknown class>

Sets the certificate to be valid immediately and until the specified duration has elapsed. The precision of this field is seconds; further precision will be truncated.