I am using async_kernel
as base library. Is there a way to convert Async_kernel.Time.now()
value to “GMT”?
A Time.t
itself doesn’t have a zone. But if you want a string representing a time in a specific zone, you can use Time.to_string_abs
. Or you can use to_date_ofday
to get a more typeful interpretation of the time in a specific zone.