package Ġio . github . san eea . dv h . feature . time . format Ċ Ċ import Ġjava . time . Instant Ċ import Ġjava . time . Zone Id Ċ import Ġjava . time . Z onedDateTime Ċ Ċ class ĠEpoch Format ( ĊĠĠĠ Ġprivate Ġval Ġepoch To Instant : Ġ( Long ) Ġ-> ĠInstant , ĊĠĠĠ Ġprivate Ġval Ġinstant To Epoch : Ġ( Instant ) Ġ-> ĠLong Ċ ) Ġ: ĠFormat Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġparse ( time : ĠString ): ĠZ onedDateTime Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtime As Number Ġ= Ġtime . to Long () ĊĠĠĠĠĠĠĠ Ġval Ġtime As Instant Ġ= Ġepoch To Instant ( time As Number ) ĊĠĠĠĠĠĠĠ Ġreturn ĠZ onedDateTime . of Instant ( time As Instant , ĠZone Id . system Default ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrender ( time : ĠZ onedDateTime ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtime As Instant Ġ= Ġtime . to Instant () ĊĠĠĠĠĠĠĠ Ġval Ġtime As Number Ġ= Ġinstant To Epoch ( time As Instant ) ĊĠĠĠĠĠĠĠ Ġreturn Ġtime As Number . toString () ĊĠĠĠ Ġ} Ċ }