[asterisk-dev] Regarding STRFTIME
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Thu May 31 07:26:43 MST 2007
On Wednesday 30 May 2007, Arpit Mehta wrote:
> For my application I need the time to be printed in milliseconds. I tried
> using STRFTIME but there is no option for printing out time till the
> milliseconds also. It would be great if anyone can suggest me how to print
> the timestamp in milliseconds . Also is there any other way it could be
> done ?
Given that timestamps in Unix are only accurate to the second, there
is not any provision in STRFTIME() to handle milliseconds. Probably the
easiest way to do this is simply to add '000' to the end of your timestamp.
--
Tilghman
More information about the asterisk-dev
mailing list