After calling the RPC method getblock. How can I get the confirmation time of this block in the genblock method?
If you look at any block there's usually a
timestamp.set extrinsic that contains the time that the block was proposed by the collator.
The time is in unix epoc time (seconds since 1/1/1970). You can translate it manually using a website, but all programming languages will convert from that format too.