subMap.put("snapshot_time", ((Long) mapTimeFix.get("times").get(
"snapshot_time") - (getSnapshotDuration() * skipCount)));
Format formatter = null;
formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = new Date((Long) subMap.get("snapshot_time"));
subMap.put("snapshot_date", formatter.format(date));
// Add the submap back to the tempmap
tempMap.put("times", new HashMap<String, Object>(subMap));
// Clear out the subMap for use again