Gets the typed time.
TypedTime typedTime = new TypedTime();
if (tokenValue.endsWith("d")) {
typedTime.setUnit("d");
String t = tokenValue.replace('d", ' ");
typedTime.setTime(Integer.parseInt(t.trim()));
} else
if (tokenValue.endsWith("h")) {
typedTime.setUnit("h");
String t = tokenValue.replace('h", ' ");
typedTime.setTime(Integer.parseInt(t.trim()));
} else
if (tokenValue.endsWith("m")) {
typedTime.setUnit("m");
String t = tokenValue.replace('m", ' ");
typedTime.setTime(Integer.parseInt(t.trim()));
} else {
typedTime.setUnit("s");
if (tokenValue.endsWith("s")) {
String t = tokenValue.replace('s", ' ");
typedTime.setTime(Integer.parseInt(t.trim()));
} else
typedTime.setTime(Integer.parseInt(tokenValue.trim()));
}
return typedTime;