* @param tm Time to format as broken-down \c struct tm.
* @param date Include the day part ([-]YYYY-MM-DD).
* @param time Include the time part (hh:mm:ss).
- * @param tz Include the timezone ([±]ZZZZ); only heeded if
+ * @param tz Include the timezone ([±]ZZZZ); only needed if
* \c time is requested as well.
*
* @return The formatted timestamp.
}
/*
- * The sign is *always* handled above so the formatted string her
+ * The sign is *always* handled above so the formatted string here
* is always one character shorter.
* */
const size_t n = strftime (start, iso8601::bufsize-1, format, &tmp);
{
char ms [4] = { '\0', '\0', '\0', '\0' };
- if (snprintf (ms, 4, "%0.3ld", ts.tv_nsec / 1000000) < 0) {
+ if (snprintf (ms, 4, "%.3ld", ts.tv_nsec / 1000000) < 0) {
return boost::none;
}
*
* POSIX defines the ns part as *long*. Technically, that means
* that on machines where *sizeof long* equals *sizeof int*, it can
- * represent only up to arund 2.1 seconds. In this range, the loop
+ * represent only up to around 2.1 seconds. In this range, the loop
* version is most likely faster than division. However, since in
* practice *long* is 8 bytes just about anywhere, we have to
* handle greater dividends first.