[Minor] Added JavaDoc to DateHelper.truncateTimeFromTimestamp

This commit is contained in:
Robert von Burg 2017-03-02 12:01:15 +01:00
parent 810f3ee203
commit fbc019e7fb
1 changed files with 10 additions and 2 deletions

View File

@ -100,9 +100,17 @@ public class DateHelper {
return labelString;
}
public static long truncateTimeFromTimestamp(String strTimeStamp) {
/**
* Parses the given ISO8601 time stamp and truncates the time from it, returning the time in long
*
* @param iso8601Timestamp
* the ISO 8601 date to parse
*
* @return the truncated time in milliseconds
*/
public static long truncateTimeFromTimestamp(String iso8601Timestamp) {
Date dateToCut = ISO8601FormatFactory.getInstance().parseDate(strTimeStamp);
Date dateToCut = ISO8601FormatFactory.getInstance().parseDate(iso8601Timestamp);
Calendar cal = Calendar.getInstance();
cal.setTime(dateToCut);