We use the Time.now function to fetch the time corresponding to a certain timezone. What would be the simplest way to create time object in GMT and how do I translate this into a certain timezone/locale (e.g. PST/en_US, JST, ja_JP)
We use the Time.now function to fetch the time corresponding to a certain timezone.
Share
Time.now.utcfor a first part and tzinfo for a 2nd