Class StartTime
java.lang.Object
com.suse.salt.netapi.datatypes.StartTime
StartDate is a convenience wrapper allowing for parsing of StartDate in the
timezone appropriate to a given master.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Dateprivate final SimpleDateFormat -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dateString
-
defaultTzDate
-
startJobDateFormat
-
-
Constructor Details
-
StartTime
Construct aStartTimefrom a date given as string.- Parameters:
dateString- the start time formatted as string to be parsed- Throws:
ParsingException- in case of a problem while parsing dateString
-
-
Method Details
-
getDate
ReturnsDaterepresentation of StartTime as parsed at a given timezone. Master does not return a timezone associated with StartTime timestamp string, therefore an explicit timezone needs to be provided for correct parsing.- Parameters:
tz- TimeZone associated with master.- Returns:
Daterepresentation of StartTime at provided timezone
-
getDate
-
toString
-