[SR-Users] How to get Formatted Current TIME (NOT CACHED)

Alvaro Araos alvaro at voxcore.cl
Sun Jul 29 00:45:25 CEST 2018


 

Hi, 

 If i call to $timef multiple times, always returns the same time string
(CACHED), how i get formatted current time?? 

Example: 

$dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS "2018-07-28
18:44:35" 

.. some seconds later 
$dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS THE SAME DATE
STRING "2018-07-28 18:44:35" 

Saludos, 

 ALVARO ARAOS MÉNDEZ 
 Director de Tecnología en FONOIP

 +56 2 2947 9000
alvaro at fonoip.com | www.fonoip.com [1] 
 Moisés Chacón 46, El Monte, RM 

 

Links:
------
[1] http://www.fonoip.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180728/7142fb47/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afc1f762.jpeg
Type: image/jpeg
Size: 10362 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180728/7142fb47/attachment.jpeg>


More information about the sr-users mailing list