ConsentTimestamp

Formatting of the ExternalConsentObject.givenOn timestamp.

Matches Verify v3 / native document-verification serialization: UTC ISO-8601 with second precision (yyyy-MM-dd'T'HH:mm:ss'Z').

Functions

Link copied to clipboard
fun format(date: Date): String

Formats date as an UTC timestamp expected for ExternalConsentObject.givenOn.

Link copied to clipboard
fun now(): String

Returns the current UTC time in the format expected for ExternalConsentObject.givenOn.

Link copied to clipboard
fun parseMillis(timestamp: String): Long?

Parses a givenOn timestamp to epoch millis, or null when the value is not recognized.