<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"> /*****************************************************************************<br>+ * Format a time string for the RTSP header<br>+ <br>*****************************************************************************/<br>+static char* makeRtspTime(char* buf, int buflen, mtime_t msecs) {<br>+ time_t secs = msecs / 1000;<br>+ if (secs <= 0) return NULL;<br>+ strftime(buf, buflen, "%Y%m%dT%H%M%S.000Z", gmtime(&secs));<br>+ return buf;<br>+}<br></blockquote><div><br></div></div>FYI, you should probably rename this function to be something like "makeISO8601Time()", and perhaps make it non-specific to the LIVE555 access module (and non-static), because this time format (YYYYMMDDHHMMSS.<fraction>) is defined in an ISO standard (ISO 8601) - which is referenced by the RTSP standard (RFC 2326). The format is not specific to RTSP.<br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>