Class TimeZoneDetail
java.lang.Object
io.github.perceivechuchu.datetimeutil.model.TimeZoneDetail
TimeZoneDetail class holds the time zone details. The fields contain values transformed/mapped from java.util.TimeZone
- Since:
- 1.0.0
- Author:
- Perceive Chuchu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZoneDetail
getInstance
(String id, String displayName, String abbreviation, Integer offsetMillis, String offsetText) Gets an instance of a time zone detail
-
Constructor Details
-
TimeZoneDetail
public TimeZoneDetail()
-
-
Method Details
-
getInstance
public static TimeZoneDetail getInstance(String id, String displayName, String abbreviation, Integer offsetMillis, String offsetText) Gets an instance of a time zone detail- Parameters:
id
- the id for a time zone e.g. "Africa/Johannesburg"displayName
- the display name for a time zone e.g. "South Africa Standard Time"abbreviation
- the abbreviation for a time zone e.g. "SAST"offsetMillis
- the difference in milliseconds from Coordinated Universal Time (UTC) e.g. "7200000"offsetText
- the difference in hours and minutes from Coordinated Universal Time (UTC) e.g. "+02:00"- Returns:
- the new time zone detail that has been instantiated
- Since:
- 1.0.0
-