clj-cctray.dates
Functions for converting dates found in the CCTray XML.
extract-dates
(extract-dates {:keys [last-build-time next-build-time]})
Extracts the last and next build times from the CCTray XML into real Instant objects.
iso-format
Format string in the ISO 8601 format, yyyy-MM-dd'T'HH:mm:ss.SSSVV
parse-date
(parse-date s)
print-date
(print-date format date)
print-dates
(print-dates format {:keys [last-build-time next-build-time]})
Prints the last and next build times using the given string format. They must be Instant objects to be printed correctly using the format string, if any other object is found it will just be converted to a string using `str`