public class TimeHelper extends Object
| Constructor and Description |
|---|
TimeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createTimeString(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
Creates a timestamp conform to the ISO 8601 specification, supported its single information bits.
|
static boolean |
testTimeString(String time)
Tests if the supported String is a correctly formatted time String, following ISO 8601.
|
public static String createTimeString(int year, int month, int day, int hours, int minutes, int seconds, String timezoneID)
year - The year for the timestamp.month - The month for the timestamp.day - The day for the timestamp.hours - The hours for the timestamp.minutes - The minutes for the timestamp.seconds - The seconds for the timestamp.timezoneID - The timezone for the timestamp.public static boolean testTimeString(String time) throws IllegalArgumentException
time - The textual representation of time to test.IllegalArgumentException - If the format is not aligned with the ISO 8601 specification.Copyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.