Package com.reve.utils.time
Class TimeParser
java.lang.Object
com.reve.utils.time.TimeParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetLongTime(String time, String format) Get the given string time value as long value.voidsetTimeInCalendar(Calendar calendar, String time, String format) Set the given time into the givenCalendarinstance.
-
Constructor Details
-
TimeParser
public TimeParser()
-
-
Method Details
-
getLongTime
Get the given string time value as long value.- Parameters:
time- time value in stringformat- date time format for the given time value.- Returns:
- the long timestamp for the given time value.
-
setTimeInCalendar
Set the given time into the givenCalendarinstance. The time value will be parsed according to the given time format.
-