[OpenSIPS-Devel] [opensips] date format convert method that use in opensips.cfg (#378)

zhouxiaoqiang.mstech at gmail.com zhouxiaoqiang.mstech at gmail.com
Tue Nov 4 08:52:27 CET 2014


Hi All:
        first, thank a lot.
        In my case, I only need C function gmtime.
        but, I think the seconds way is better that have good  expansibility.



zhouxiaoqiang.mstech at gmail.com
 
From: Di-Shi Sun
Date: 2014-11-04 15:39
To: devel
Subject: Re: [OpenSIPS-Devel] [opensips] date format convert method that use in opensips.cfg (#378)
If zhouxiaoqiang only wants to get time string in GMT for SIP Date, it should be easy to implemented. C function gmtime should work. timezone configuration is not needed. A pvar say, gmttime(), should be enough.
If time strings in other timezones are needed, the best way may be to provider a function with a timezone parameter to get time string. The timezone parameter is better to use offset instead of using timezone name. The implementation may be a little tricky but also not difficult. A script variable should also work.
Regards,
Di-Shi
—
Reply to this email directly or view it on GitHub.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141104/93ce68dd/attachment.htm>


More information about the Devel mailing list