I have done some Googling and Stacking, but cannot find the necessary resources for any methods that can convert ISO-8601 format to Unix time in Java.
I am parsing NOAA's (National Oceanic Atmospheric Administration) predictions, and using XPath I am able to successfully parse that data. I would, however, like to convert the ISO-8601 i.e. 2013-10-31T14:00:00-07:00
date format to Unix time.
Are there any Java libraries that can do this?
What my code does:
for (int i = 0; i < tempHourlyResult.getLength(); i++) {
writer.append(
hourlyResult.item(i).getNodeValue() + ","
+ tempHourlyResult.item(i).getNodeValue()+ ","
+ dewPointResult.item(i).getNodeValue() + ","
+ windSpeedResult.item(i).getNodeValue() +","
+ relHumResult.item(i).getNodeValue() + "\n");
}